summaryrefslogtreecommitdiff
path: root/dev-python/ratelimit
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-python/ratelimit
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-python/ratelimit')
-rw-r--r--dev-python/ratelimit/Manifest3
-rw-r--r--dev-python/ratelimit/metadata.xml20
-rw-r--r--dev-python/ratelimit/ratelimit-1.4.1.ebuild26
3 files changed, 49 insertions, 0 deletions
diff --git a/dev-python/ratelimit/Manifest b/dev-python/ratelimit/Manifest
new file mode 100644
index 000000000000..11a5b981ac87
--- /dev/null
+++ b/dev-python/ratelimit/Manifest
@@ -0,0 +1,3 @@
+DIST ratelimit-1.4.1.tar.gz 10700 SHA256 2376d02963fe5b37e18d2d2e8d5b950b692c8d6fcd142cd3491ec716db472af5 SHA512 ab8a2cc95b852f91c614ba5a5a677d2b4b99d5f810ec8a11e69d97af58cef1f67457e1cf686a286073c85b39c2ebbeca0a459382e410c9e8eda12cecdda57f02 WHIRLPOOL 33e4e0bcb81ab2e83bddf081e70cec47a44ad3b5dbd058e0348506b49d9209b18761e33bd9843b2dfe1420eff97f3efbdbd063fec1599a4ab047bbac10df0714
+EBUILD ratelimit-1.4.1.ebuild 566 SHA256 2ad6d5147dac159733b34ddb6f5364d2bf36113de16ad1cd344b68f3d462995b SHA512 a8445d5d480db02949c0693b1e75ba44dcbaf474a7bfbd7b4aed8644c6ac1204e2278a10944ee9efe809e97cac777ebaa43b06990506669b6a899ab474e33ece WHIRLPOOL f40652c4f9865d2e07841405e646241ad978e3196fc345cafe3850f1e831a490f53b85bf46c7128ebd4c8ac508b9e4c2e1fae89ed6ec44282e5840c5901bc0c0
+MISC metadata.xml 724 SHA256 6967f9ac367756ab148245fdfeedd6e5be8af734c8cfe59438143bbbe3df4bbf SHA512 aec024dc134acf8c02150822fdd1b29ac3042aac96a5a54d5c1876e20bd4bf4bd2211374460b8dd4c19b37be44d063b5cd36ac77f196c30b4529c65bd7c45249 WHIRLPOOL aa08ddb8b2e158fe19aaf1ace1ce347070a95f485da87d152b044c48724a3e6026fe6eaf03a1504951c2dc10622b4d927c701eb2ca7bf6e8cd80126e5f630908
diff --git a/dev-python/ratelimit/metadata.xml b/dev-python/ratelimit/metadata.xml
new file mode 100644
index 000000000000..b656231c3c9c
--- /dev/null
+++ b/dev-python/ratelimit/metadata.xml
@@ -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>
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 000000000000..3c01b8f2c100
--- /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,3_5,3_6} )
+
+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
+}