diff options
Diffstat (limited to 'dev-python/distlib')
| -rw-r--r-- | dev-python/distlib/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/distlib/distlib-0.4.4.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/distlib/Manifest b/dev-python/distlib/Manifest index 5db7a81c31ac..dfdd8d532b04 100644 --- a/dev-python/distlib/Manifest +++ b/dev-python/distlib/Manifest @@ -1 +1,2 @@ DIST distlib-0.4.3.tar.gz 615141 BLAKE2B ef9c33d960b719ad6c8d66eaba6469915e19e9a89882b9a2a85244c041f40ca92222134ef9a5d1d00810eece628d07b65b0ffb09600fbcfb03f4f6b0c278bfa4 SHA512 0f6b44640cbfa9bccef10c6cdeedaec8582a2bd5878fcbc803a6feedb81daee5f28506004e23749f3eba206199cadae99808dbcd956066ba948cde455301fd74 +DIST distlib-0.4.4.tar.gz 621304 BLAKE2B f97ead36390f38f5d148c09beb7d3a6894af5df91e7d3377c4777736691742f4de3858910fb8e29993301feb4a0faed5eabdedc837ec2730c8de0c25b075fc4f SHA512 c02c565d2df4581983875cb7d684168a3f3855f56b165fe09207dd90b2c70b74c14b7aa8332d002a6cb02c952cbc262eb4ccabb56ff288d6e59ce3f1c1e651ce diff --git a/dev-python/distlib/distlib-0.4.4.ebuild b/dev-python/distlib/distlib-0.4.4.ebuild new file mode 100644 index 000000000000..3fad2c05140a --- /dev/null +++ b/dev-python/distlib/distlib-0.4.4.ebuild @@ -0,0 +1,50 @@ +# Copyright 2021-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Low-level components of distutils2/packaging" +HOMEPAGE=" + https://pypi.org/project/distlib/ + https://github.com/pypa/distlib/ +" + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +IUSE="test" +RESTRICT="!test? ( test )" + +# pypiserver is called as external executable +BDEPEND=" + test? ( + dev-python/pypiserver + ) +" + +src_prepare() { + local PATCHES=( + # use system pypiserver instead of bundled one + "${FILESDIR}/distlib-0.3.9-system-pypiserver.patch" + ) + + distutils-r1_src_prepare +} + +python_test() { + local -x SKIP_ONLINE=1 + local -x PYTHONHASHSEED=0 + + # disable system-site-packages -- distlib has no deps, and is very + # fragile to packages actually installed on the system + sed -i -e '/system-site-packages/s:true:false:' \ + "${BUILD_DIR}/install${EPREFIX}/usr/pyvenv.cfg" || die + + "${EPYTHON}" tests/test_all.py -v -x || + die "Tests failed with ${EPYTHON}" +} |
