mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-21 16:47:00 +02:00
python3-pywt: simplify testing
This commit is contained in:
parent
2acd2e6f8c
commit
104611878f
1 changed files with 1 additions and 9 deletions
|
@ -4,6 +4,7 @@ version=1.6.0
|
|||
revision=1
|
||||
build_style=python3-pep517
|
||||
build_helper="meson numpy"
|
||||
make_check_target=".xbps-testdir/*/${py3_sitelib}/pywt/tests"
|
||||
hostmakedepends="python3-meson-python python3-Cython"
|
||||
makedepends="python3-devel"
|
||||
depends="python3-numpy"
|
||||
|
@ -15,15 +16,6 @@ homepage="https://github.com/PyWavelets/pywt"
|
|||
distfiles="${homepage}/archive/v${version}.tar.gz"
|
||||
checksum=8f2cbc64ee8142bf069447bf26bc3ff0f5e332a18062c6ca0ea033f20a4fb995
|
||||
|
||||
do_check() {
|
||||
local testdir="${wrksrc}/.xbps-testdir/$(date +%s)"
|
||||
python3 -m installer --destdir "${testdir}" dist/*.whl
|
||||
|
||||
# Relative imports in tests preclude running from source tree
|
||||
local pysite="${testdir}/${py3_sitelib}"
|
||||
PYTHONPATH="${pysite}" pytest3 "${pysite}/pywt/tests"
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue