diff --git a/dev-python/slowapi/Manifest b/dev-python/slowapi/Manifest index d130c31e6..f45c4174f 100644 --- a/dev-python/slowapi/Manifest +++ b/dev-python/slowapi/Manifest @@ -1 +1,2 @@ DIST slowapi-0.1.7.tar.gz 14153 BLAKE2B 718be1d47ed02da8aa7d395a3ce67965e982cae540ea5e5fe8195718c5ac35e1ecf73079752a67eaa36ed1d7757d3d9ab35ab3e2e681c87ba25e130d7f43add0 SHA512 06af17d501448975e9990515552446118cb5e0fbb4c0007dff1bdd4ce7626c0e1ca1d634c532456573a4c76d3c2c8e7bb16dc2d962bce0e069f6835f79d23ec2 +DIST slowapi-0.1.7_p20230321.tar.gz 53139 BLAKE2B 39e197f983aef3702da0fc92fa341b15c19707ccce04ba24ae9a65d26ad453c2c10b760b5602a4544ac130dbaec1c53608dded5bd03f83a11e7c7e8cfff37455 SHA512 df63030ed589f9fd9f6d370faf49517791811628ca565072538c9091e3fc4468f1c67e1529ebdff2b990705cb11360116b81525b5a280380f058b10ef0a9d276 diff --git a/dev-python/slowapi/slowapi-0.1.7_p20230321.ebuild b/dev-python/slowapi/slowapi-0.1.7_p20230321.ebuild new file mode 100644 index 000000000..0a1ef3ad9 --- /dev/null +++ b/dev-python/slowapi/slowapi-0.1.7_p20230321.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) + +DISTUTILS_USE_PEP517=poetry +inherit distutils-r1 +distutils_enable_tests pytest + +DESCRIPTION="A rate limiting extension for Starlette and Fastapi" +HOMEPAGE="https://github.com/laurents/slowapi" +#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" +SRC_URI="https://github.com/laurentS/slowapi/archive/8f8fc7c65a57fd8fcfd476ff1e782bd37f4eed8f.tar.gz -> ${P}.tar.gz" +inherit vcs-snapshot + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" +#RESTRICT="!test? ( test )" +#doesn't seem to work, missing "hiro"? +RESTRICT=test + +BDEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )" +RDEPEND=">=dev-python/limits-1.5[${PYTHON_USEDEP}] + >=dev-python/redis-3.4.1[${PYTHON_USEDEP}] + dev-python/starlette[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND}" +REQUIRED_USE="${PYTHON_REQUIRED_USE}"