-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Expand file tree
/
Copy pathtemplate
More file actions
34 lines (30 loc) · 1.27 KB
/
Copy pathtemplate
File metadata and controls
34 lines (30 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Template file for 'python3-distlib'
pkgname=python3-distlib
version=0.4.0
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=feec40075be03a04501a973d81f633735b4b69f98b05450592310c0f401a4e0d
# 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"
# see: https://github.com/pypa/distlib/issues/245#issuecomment-3068307380
make_check_pre+=" SKIP_EXT_PACKAGE_DATA=1"
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
}