# Maintainer: Carlos Aznarán # Contributor: Jingbei Li # Contributor: Francois Boulogne _base=pywavelets pkgname=python-${_base} pkgver=1.6.0 pkgrel=1 pkgdesc="Wavelet transform module" arch=(x86_64) url="https://github.com/${_base}/${_base::3}t" license=(MIT) depends=(python-numpy) makedepends=(python-build python-installer meson-python python-setuptools python-wheel cython) # checkdepends=(python-pytest python-matplotlib) # python-scipy source=(${_base::3}t-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz) sha512sums=('48a1b498a1698c740b6d4805e32ea4692044790ad9f86e62e63719582b1b896aceb05f57020c1662837cf4dcc36a569160d16b3bd4e92a1400cedbaae46c0873') build() { cd ${_base::3}t-${pkgver} python -m build --wheel --skip-dependency-check --no-isolation } # check() { # python -m venv --system-site-packages test-env # test-env/bin/python -m installer ${_base::3}t-${pkgver}/dist/*.whl # MPLBACKEND=Agg test-env/bin/python -m pytest --pyargs ${_base::3}t-${pkgver}/${_base::3}t/tests # } package() { cd ${_base::3}t-${pkgver} PYTHONPYCACHEPREFIX="${PWD}/.cache/cpython/" python -m installer --destdir="${pkgdir}" dist/*.whl install -Dm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" }