From b590c8d7572b727d565cc0b8ff660d43569845de Mon Sep 17 00:00:00 2001 From: root Date: Fri, 12 Jun 2026 19:09:37 -0500 Subject: Adding metadata --- dev-python/ratelimit/Manifest | 1 + dev-python/ratelimit/metadata.xml | 15 ++++++++++++++ dev-python/ratelimit/ratelimit-2.2.1-r1.ebuild | 27 ++++++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 dev-python/ratelimit/Manifest create mode 100644 dev-python/ratelimit/metadata.xml create mode 100644 dev-python/ratelimit/ratelimit-2.2.1-r1.ebuild (limited to 'dev-python/ratelimit') diff --git a/dev-python/ratelimit/Manifest b/dev-python/ratelimit/Manifest new file mode 100644 index 000000000000..cc1a11905663 --- /dev/null +++ b/dev-python/ratelimit/Manifest @@ -0,0 +1 @@ +DIST ratelimit-2.2.1.gh.tar.gz 12366 BLAKE2B 7c810bd111202ef6cd86a789627367665457eb2fd88f13d91b18c934210b72f8f4b0ca1ae0e26b502234c4bf3e74d1c6608260d51a022f9f733d10eb061de023 SHA512 a9a2347e9f9e152e5b1ffcf346cf750c5c52471aa2216b485d989edfc55686077990676a35e0125277313ad50a656a14ab72b7aac61b661e2fc4ec74611b5990 diff --git a/dev-python/ratelimit/metadata.xml b/dev-python/ratelimit/metadata.xml new file mode 100644 index 000000000000..632e1ccb2189 --- /dev/null +++ b/dev-python/ratelimit/metadata.xml @@ -0,0 +1,15 @@ + + + + + python@gentoo.org + Python + + + 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. + + + baldeagleos-repo + diff --git a/dev-python/ratelimit/ratelimit-2.2.1-r1.ebuild b/dev-python/ratelimit/ratelimit-2.2.1-r1.ebuild new file mode 100644 index 000000000000..d0bf783fc367 --- /dev/null +++ b/dev-python/ratelimit/ratelimit-2.2.1-r1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) +inherit distutils-r1 + +DESCRIPTION="An API rate limit decorator for Python" +HOMEPAGE="https://github.com/tomasbasham/ratelimit" +SRC_URI=" + https://github.com/tomasbasham/${PN}/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +distutils_enable_tests pytest + +src_prepare() { + # remove --cov args injection + rm pytest.ini || die + distutils-r1_src_prepare +} -- cgit v1.3