diff --git a/dev-python/ratelimit/Manifest b/dev-python/ratelimit/Manifest new file mode 100644 index 0000000000000..71d7bed960446 --- /dev/null +++ b/dev-python/ratelimit/Manifest @@ -0,0 +1 @@ +DIST ratelimit-1.4.1.tar.gz 10700 SHA256 2376d02963fe5b37e18d2d2e8d5b950b692c8d6fcd142cd3491ec716db472af5 SHA512 ab8a2cc95b852f91c614ba5a5a677d2b4b99d5f810ec8a11e69d97af58cef1f67457e1cf686a286073c85b39c2ebbeca0a459382e410c9e8eda12cecdda57f02 WHIRLPOOL 33e4e0bcb81ab2e83bddf081e70cec47a44ad3b5dbd058e0348506b49d9209b18761e33bd9843b2dfe1420eff97f3efbdbd063fec1599a4ab047bbac10df0714 diff --git a/dev-python/ratelimit/metadata.xml b/dev-python/ratelimit/metadata.xml new file mode 100644 index 0000000000000..b656231c3c9c0 --- /dev/null +++ b/dev-python/ratelimit/metadata.xml @@ -0,0 +1,20 @@ + + + + + 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. + + + horea.christ@gmail.com + Horea Christian + + + proxy-maint@gentoo.org + Proxy Maintainers + + + tomasbasham/ratelimit" + + diff --git a/dev-python/ratelimit/ratelimit-1.4.1.ebuild b/dev-python/ratelimit/ratelimit-1.4.1.ebuild new file mode 100644 index 0000000000000..a4443b3463938 --- /dev/null +++ b/dev-python/ratelimit/ratelimit-1.4.1.ebuild @@ -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 +}