testing/py3-simplespectral: build with gpep517

This commit is contained in:
ptrcnull 2024-08-07 15:30:32 +02:00
parent e6b6d19360
commit 8ab1da8aff

View File

@ -2,29 +2,29 @@
# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
pkgname=py3-simplespectral
pkgver=1.0.0
pkgrel=4
pkgrel=5
pkgdesc="Heavily simplified scipy.signal.spectral module"
url="https://github.com/xmikos/simplespectral"
arch="noarch"
license="MIT"
depends="python3 py3-numpy py3-scipy py3-setuptools"
makedepends="py3-gpep517"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/xmikos/simplespectral/archive/v$pkgver.tar.gz"
builddir="$srcdir/simplespectral-$pkgver"
options="!check" # no checks provided
build() {
python3 setup.py build
}
check() {
# Currently all 0 of the 0 existing tests are passing :-) But it doesn't
# hurt to have this in place in case some tests are added
python3 setup.py test
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
}
sha512sums="16da3cb19cd7c567b64709a26ed5def7eb3047b08e2cb48db6962036a6c3e34c122dadf71821b6a22df55ebcf3c2ff95e3af3898efc8b4a6d5902e48de8e050c py3-simplespectral-1.0.0.tar.gz"
sha512sums="
16da3cb19cd7c567b64709a26ed5def7eb3047b08e2cb48db6962036a6c3e34c122dadf71821b6a22df55ebcf3c2ff95e3af3898efc8b4a6d5902e48de8e050c py3-simplespectral-1.0.0.tar.gz
"