mirror of
https://github.com/void-linux/void-packages.git
synced 2025-10-10 12:35:10 +02:00
31 lines
1.2 KiB
Bash
31 lines
1.2 KiB
Bash
# Template file for 'python3-distlib'
|
|
pkgname=python3-distlib
|
|
version=0.3.9
|
|
revision=1
|
|
build_style=python3-pep517
|
|
hostmakedepends="python3-setuptools python3-wheel"
|
|
depends="python3"
|
|
checkdepends="python3-pytest-xdist"
|
|
short_desc="Low-level components of distutils2/packaging, with higher-level APIs"
|
|
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
|
|
license="Python-2.0"
|
|
homepage="https://distlib.readthedocs.io/"
|
|
changelog="https://raw.githubusercontent.com/pypa/distlib/master/CHANGES.rst"
|
|
distfiles="${PYPI_SITE}/d/distlib/distlib-${version}.tar.gz"
|
|
checksum=a60f20dea646b8a33f3e7772f74dc0b2d0772d2837ee1342a00645c81edf9403
|
|
|
|
# see: https://github.com/pypa/distlib/issues/161#issuecomment-1119511558
|
|
make_check_pre="env PYTHONHASHSEED=0"
|
|
# this uses https://docs.python.org/3/library/test.html (not installed)
|
|
# see https://github.com/pypa/distlib/issues/214#issuecomment-1945563204
|
|
make_check_args="
|
|
--deselect tests/test_scripts.py::ScriptTestCase::test_script_run"
|
|
|
|
pre_check() {
|
|
# this is testing `is_writable('/etc')`, which for us is `True`
|
|
vsed -i -e "/self.assertFalse(self.fileop.is_writable/s/False/True/" tests/test_util.py
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt
|
|
}
|