dev-python/ratelimit: new ebuild.

ratelimit introduces a method decorator preventing a method from being called
more than once within a given time period. It prevents API providers from
banning your applications by conforming to set rate limits.

Package-Manager: Portage-2.3.8, Repoman-2.3.3
Closes: https://github.com/gentoo/gentoo/pull/5675
This commit is contained in:
Horea Christian
2017-09-09 23:29:11 +02:00
committed by Patrice Clement
parent c9f45822eb
commit 13c07615ce
3 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST ratelimit-1.4.1.tar.gz 10700 SHA256 2376d02963fe5b37e18d2d2e8d5b950b692c8d6fcd142cd3491ec716db472af5 SHA512 ab8a2cc95b852f91c614ba5a5a677d2b4b99d5f810ec8a11e69d97af58cef1f67457e1cf686a286073c85b39c2ebbeca0a459382e410c9e8eda12cecdda57f02 WHIRLPOOL 33e4e0bcb81ab2e83bddf081e70cec47a44ad3b5dbd058e0348506b49d9209b18761e33bd9843b2dfe1420eff97f3efbdbd063fec1599a4ab047bbac10df0714

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<longdescription lang="en">
ratelimit introduces a method decorator preventing a method from being
called more than once within a given time period. It prevents API providers
from banning your applications by conforming to set rate limits.
</longdescription>
<maintainer type="person">
<email>horea.christ@gmail.com</email>
<name>Horea Christian</name>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<upstream>
<remote-id type="github">tomasbasham/ratelimit"</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,26 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python{2_7,3_4} )
inherit distutils-r1
DESCRIPTION="An API rate limit decorator for Python"
SRC_URI="https://github.com/tomasbasham/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
HOMEPAGE="https://github.com/tomasbasham/ratelimit"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
DEPEND="
test? (
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/pytest-cov[${PYTHON_USEDEP}]
)"
python_test() {
py.test || die
}