diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-10-11 04:04:15 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-10-11 04:04:15 +0100 |
commit | 61af1efe96cf1037982d2fc90af0749b5ec5a0c6 (patch) | |
tree | fd4966f3b19ef9b18ed5024d7e2f48ef73eb2fee /dev-python/immutables | |
parent | 3aae425b3c39d02e2dc917db0fae8c225c158ca1 (diff) |
gentoo auto-resync : 11:10:2024 - 04:04:14
Diffstat (limited to 'dev-python/immutables')
-rw-r--r-- | dev-python/immutables/Manifest | 2 | ||||
-rw-r--r-- | dev-python/immutables/immutables-0.21.ebuild | 50 |
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/immutables/Manifest b/dev-python/immutables/Manifest index 4185891ffddc..271226ec5e98 100644 --- a/dev-python/immutables/Manifest +++ b/dev-python/immutables/Manifest @@ -1,4 +1,6 @@ AUX immutables-0.20-opt-ext.patch 1122 BLAKE2B 93454accb29307244498a1cbc86a5cee706c076e77903d259d8c243af50f3c96695652c018c1f67f5014a7c34cde4f4f7e23319ad9009ccd5c9496bc2c1539ee SHA512 47f3628c9a5476b258141cc60a378851efd41e418a16af548e9da6d2b614d627527458e243cc37e6e22ab669b373b298f630ba98fb94bc6e5f5a64c49a5cb9ab DIST immutables-0.20.gh.tar.gz 88169 BLAKE2B fb76793d8d908ea35999a9d3d36cdb6cc2021fda07d0822b23bf1eb7fe02031ac26a7aa3e83e890af24b949eedf6d81089a3670e96f9873a60339d0da44d2484 SHA512 b20a661e4a9161a2fe3db674aac8e84a36dd3e56083e6f6d6b1261a00d38adc136c0a2dce67243a5a4cd5b0568aa48a9d4c758fb27cf74e055f378a501c0f725 +DIST immutables-0.21.gh.tar.gz 88188 BLAKE2B be5f5e247f16549b1ccf2fa4a95b81818795d04a0ed934509dc3dcac985be4779ea3c2634cd9e8b57321d58ebf63ce828df08f39f19819e6b537ea3195ae87e3 SHA512 ffd754cd5f13f0d961ec05b1c19df4f9a25c0804a402d0dee91e163531eb9f30b50d8abb1252df775cb83922c69b02baa51bef5d6aa17d80fca57442b93d5e94 EBUILD immutables-0.20.ebuild 1308 BLAKE2B dc4a152132bbac7717f95fb0e40f5ac42a84ab9e8a1b09fe7b247d6e326cac056013c96cf55253d5cf4532ebee3902b763029f709234310e98d6e322eea15842 SHA512 a43dae1af9755c035299fd0b5685bf358bf8d8406795c7f4a18132217fe80b1942e367b71a842d771cdb705c69ef16da92189ef77e446a1832882fc6d3f06802 +EBUILD immutables-0.21.ebuild 1083 BLAKE2B 5a84c3961b58ea807c3d813bcc232399b17ebddd3d88bcf7888974fb266843a327520033b0c395a75524840a680ca800c9e21267f674e6fed4368586d01bd9e8 SHA512 98975e46dd34f25761488e87d771030f4c9d3134f1a246fe33c78529fb952c9b78bbee2756d63e4aec06132eda5991c655a5fb87742aa33e9156592596babb1f MISC metadata.xml 500 BLAKE2B 6e0ecbab5e2bb4832c5365f1a8942fb4c3838520347031f917a2c834e74ddd17c5d36032f967a1e89a457ddc2da3ab7cbe1145ca80dd9053cfbcbcf4fdfeeaa0 SHA512 b1078749accb64b17f39e884467e1826eaae0bc2cb736d9e97657ae2d06ca86042c5b12c3ea2f430d9a82d65339d2a4bbe9297f2f16d1f8b299e94bb5e2174fe diff --git a/dev-python/immutables/immutables-0.21.ebuild b/dev-python/immutables/immutables-0.21.ebuild new file mode 100644 index 000000000000..96ef2ba49db3 --- /dev/null +++ b/dev-python/immutables/immutables-0.21.ebuild @@ -0,0 +1,50 @@ +# Copyright 2019-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=( pypy3 python3_{10..13} ) + +inherit distutils-r1 + +DESCRIPTION="A high-performance immutable mapping type for Python" +HOMEPAGE=" + https://github.com/MagicStack/immutables/ + https://pypi.org/project/immutables/ +" +SRC_URI=" + https://github.com/MagicStack/${PN}/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="+native-extensions" + +distutils_enable_tests pytest + +src_prepare() { + sed -i -e '/mypy/d' tests/conftest.py || die + distutils-r1_src_prepare +} + +python_compile() { + # upstream controls NDEBUG explicitly + use debug && local -x DEBUG_IMMUTABLES=1 + local -x IMMUTABLES_EXT=$(usex native-extensions 1 0) + + distutils-r1_python_compile +} + +python_test() { + local EPYTEST_IGNORE=( + tests/test_mypy.py + ) + + rm -rf immutables || die + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} |