diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-10-10 06:14:03 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-10-10 07:03:14 +0200 |
commit | 284e1aa3e6f8ecf3b9e55c0c2abd010b7d6103c4 (patch) | |
tree | 871bb521959ed84322b9817de62b74c8d3134ff9 /dev-python/immutables | |
parent | dev-python/nox: Bump to 2024.10.09 (diff) | |
download | gentoo-284e1aa3e6f8ecf3b9e55c0c2abd010b7d6103c4.tar.gz gentoo-284e1aa3e6f8ecf3b9e55c0c2abd010b7d6103c4.tar.bz2 gentoo-284e1aa3e6f8ecf3b9e55c0c2abd010b7d6103c4.zip |
dev-python/immutables: Bump to 0.21
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/immutables')
-rw-r--r-- | dev-python/immutables/Manifest | 1 | ||||
-rw-r--r-- | dev-python/immutables/immutables-0.21.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/immutables/Manifest b/dev-python/immutables/Manifest index aba8fbe43b0a..3bf6c91a9d18 100644 --- a/dev-python/immutables/Manifest +++ b/dev-python/immutables/Manifest @@ -1 +1,2 @@ DIST immutables-0.20.gh.tar.gz 88169 BLAKE2B fb76793d8d908ea35999a9d3d36cdb6cc2021fda07d0822b23bf1eb7fe02031ac26a7aa3e83e890af24b949eedf6d81089a3670e96f9873a60339d0da44d2484 SHA512 b20a661e4a9161a2fe3db674aac8e84a36dd3e56083e6f6d6b1261a00d38adc136c0a2dce67243a5a4cd5b0568aa48a9d4c758fb27cf74e055f378a501c0f725 +DIST immutables-0.21.gh.tar.gz 88188 BLAKE2B be5f5e247f16549b1ccf2fa4a95b81818795d04a0ed934509dc3dcac985be4779ea3c2634cd9e8b57321d58ebf63ce828df08f39f19819e6b537ea3195ae87e3 SHA512 ffd754cd5f13f0d961ec05b1c19df4f9a25c0804a402d0dee91e163531eb9f30b50d8abb1252df775cb83922c69b02baa51bef5d6aa17d80fca57442b93d5e94 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 +} |