summaryrefslogtreecommitdiff
path: root/dev-python/multidict
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-10 12:30:41 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-10 12:30:41 +0100
commitadd278b9601ff9e4af091c91c851ee46a185be8f (patch)
tree4b654beae0eec584ae1d1f3227a57607d591a0ea /dev-python/multidict
parentd8a7472fc6314625f7d16e0427004eb448412908 (diff)
gentoo auto-resync : 10:09:2024 - 12:30:41
Diffstat (limited to 'dev-python/multidict')
-rw-r--r--dev-python/multidict/Manifest2
-rw-r--r--dev-python/multidict/multidict-6.1.0.ebuild57
2 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/multidict/Manifest b/dev-python/multidict/Manifest
index 13c3ae9edd8b..254db771a25f 100644
--- a/dev-python/multidict/Manifest
+++ b/dev-python/multidict/Manifest
@@ -1,3 +1,5 @@
DIST multidict-6.0.5.gh.tar.gz 72819 BLAKE2B 668b5db8174c0dbc6651eae281f777d5c1dfb59a4f4d9d5301355148bf40063e33e26844d2f8ff543ebe7b9c91cf7fffb4abd57ca6786684757f50af27b7df56 SHA512 500d3b2a139d40442462a2b49f9dd0c01631643ef9905367d8b7c472a1030437c26a042a28e11ba94058a17821628d96f19ec6ca479d5831e2f1263ff0069871
+DIST multidict-6.1.0.gh.tar.gz 73800 BLAKE2B 9e3531633b0a35bbb8a97ec2dfe040080fe67efae3b3a16436b0984d6c3a4dc38df1cf5b91bd7b1f750f7a27bd2726667935fa30eefa7b070534fd70f390ee8a SHA512 48e97f442c28c2dfc0b5e19376ae9c8c46b20939ac4f72c07b650450286156dcbe03166f7d238d7a77b438a154022e9d98a38a4c0596aefab7d40fbdda0687dc
EBUILD multidict-6.0.5.ebuild 1134 BLAKE2B 359684bd8a044a2227173922686c062f140672a3a31c89e81c102770b922d1de5779db7413dff7d809d6696d43df879cc3d71a8c9e6e79f7204ad342dfe304bd SHA512 d68f4064d09093551a3abda3debc754ee6f4eb0dde5bc4f39cd345e92cd19fdba398f722e83fe46a8c22d8505497025feba9faaad036e308548bfe83881fb641
+EBUILD multidict-6.1.0.ebuild 1231 BLAKE2B 36349b965ab4eaa1880100f746e518df4167be2cee89a2bdf4e51f4fccc44c76d5e57e69372cac6ad0fbf2cb8b2b7b105e5115a0d9290b57d5d679b606d864c3 SHA512 09f5399c57b7b1c01acdcb4679354b9a2f83cf54b8a83dfcf6c61c525b5380c7f53588d7625833e0b0e485dcac7b505e55f4a4e0bd87f4bd30f5c96c3b0c74a9
MISC metadata.xml 620 BLAKE2B 7d4dcf63e1d4fdc3725be371b49bf49fc0241e16572cb83de1b8f8e6dd89b070bc723a4f62d14a723179e6e07140e2abd5411db92ed25703c9d31c34864ff4d3 SHA512 6c6abebeda31e025359b8b46840d7220fb8633cf62596da471ab3b8ce8a2f717d6b8f94dc7878a1ebe2b2efe63579ee28ad7283e37af9dd89b59ae03faa32fd2
diff --git a/dev-python/multidict/multidict-6.1.0.ebuild b/dev-python/multidict/multidict-6.1.0.ebuild
new file mode 100644
index 000000000000..1d82b4eb7cfc
--- /dev/null
+++ b/dev-python/multidict/multidict-6.1.0.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..13} pypy3 )
+
+inherit distutils-r1
+
+DESCRIPTION="multidict implementation"
+HOMEPAGE="
+ https://github.com/aio-libs/multidict/
+ https://pypi.org/project/multidict/
+"
+SRC_URI="
+ https://github.com/aio-libs/${PN}/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
+IUSE="+native-extensions"
+
+RDEPEND="
+ $(python_gen_cond_dep '
+ >=dev-python/typing-extensions-4.1.0[${PYTHON_USEDEP}]
+ ' 3.10)
+"
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+ # don't enable coverage or other pytest settings
+ sed -i -e '/cov/d' pytest.ini || die
+ distutils-r1_python_prepare_all
+}
+
+python_compile() {
+ if ! use native-extensions || [[ ${EPYTHON} == pypy3 ]]; then
+ local -x MULTIDICT_NO_EXTENSIONS=1
+ fi
+
+ distutils-r1_python_compile
+}
+
+python_test() {
+ rm -rf multidict || die
+
+ local cext=--c-extensions
+ if ! use native-extensions || [[ ${EPYTHON} == pypy3 ]]; then
+ cext=--no-c-extensions
+ fi
+ epytest "${cext}"
+}