diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-10-26 14:54:34 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-10-26 15:36:47 +0200 |
commit | 28f2c628e7fd120ca537c5ffd2d0c7bbd00e1522 (patch) | |
tree | 826d06c56c2a671acf9ab4b8367ad448dda12fdb /dev-python/pyrsistent | |
parent | dev-python/plotly: Bump to 5.18.0 (diff) | |
download | gentoo-28f2c628e7fd120ca537c5ffd2d0c7bbd00e1522.tar.gz gentoo-28f2c628e7fd120ca537c5ffd2d0c7bbd00e1522.tar.bz2 gentoo-28f2c628e7fd120ca537c5ffd2d0c7bbd00e1522.zip |
dev-python/pyrsistent: Bump to 0.20.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pyrsistent')
-rw-r--r-- | dev-python/pyrsistent/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pyrsistent/metadata.xml | 6 | ||||
-rw-r--r-- | dev-python/pyrsistent/pyrsistent-0.20.0.ebuild | 35 |
3 files changed, 42 insertions, 0 deletions
diff --git a/dev-python/pyrsistent/Manifest b/dev-python/pyrsistent/Manifest index 2f5442783337..8fe43c23e8ae 100644 --- a/dev-python/pyrsistent/Manifest +++ b/dev-python/pyrsistent/Manifest @@ -1 +1,2 @@ DIST pyrsistent-0.19.3.tar.gz 102640 BLAKE2B 60c5ef9d3f26c4529d05804df13453c75b6ff70e12fbbbbe22312686da929766fc903b18ca77d626192e1f3fc9fbdfdbbbd4eef102f1504b38feeeedf00450d5 SHA512 6bb70b6fd65b5cd9f961a3199c2d90725aaa66fb869e4eba2143735e2f3a7e4ecdc782b3498acc2d92e263c3bed14cec8cc77324f4ebd08c300ba6735db5ecf7 +DIST pyrsistent-0.20.0.tar.gz 103642 BLAKE2B ebc5d8f2309599ae3e34c35d35edb148758fde28270b9c5c9880e5a180bdf11424804aba0272b515224ed4edcf9dbad3ff21b810a0d40f563617ece76e275432 SHA512 ac78c55e8687f12ae8729f2262a76a9257a6d6f4bbb5a01cb45ffb170d5c2044b1f26b3ed1359b2d722201507c32781f024b49b20d45faedf288823a98255a6f diff --git a/dev-python/pyrsistent/metadata.xml b/dev-python/pyrsistent/metadata.xml index d6f248521add..83aa9250a381 100644 --- a/dev-python/pyrsistent/metadata.xml +++ b/dev-python/pyrsistent/metadata.xml @@ -13,4 +13,10 @@ </maintainer> <remote-id type="github">tobgu/pyrsistent</remote-id> </upstream> + <use> + <flag name="native-extensions"> + Compiles native C extensions (speedups, instead of using python + fallback code). + </flag> + </use> </pkgmetadata> diff --git a/dev-python/pyrsistent/pyrsistent-0.20.0.ebuild b/dev-python/pyrsistent/pyrsistent-0.20.0.ebuild new file mode 100644 index 000000000000..6c59cf318850 --- /dev/null +++ b/dev-python/pyrsistent/pyrsistent-0.20.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2023 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..12} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Persistent/Functional/Immutable data structures" +HOMEPAGE=" + https://github.com/tobgu/pyrsistent/ + https://pypi.org/project/pyrsistent/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos" +IUSE="+native-extensions" + +BDEPEND=" + test? ( + dev-python/hypothesis[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_configure() { + if ! use native-extensions; then + export PYRSISTENT_SKIP_EXTENSION=1 + fi +} |