2024-01-19 04:48:28 +00:00
|
|
|
# Contributor: Aiden Grossman <agrossman154@yahoo.com>
|
2024-11-01 14:11:09 +00:00
|
|
|
# Maintainer:
|
2024-01-19 04:48:28 +00:00
|
|
|
pkgname=py3-numpy-stl
|
2024-12-01 00:49:37 +00:00
|
|
|
pkgver=3.2.0
|
|
|
|
pkgrel=0
|
2024-01-19 04:48:28 +00:00
|
|
|
pkgdesc="Library for working with STLs"
|
|
|
|
url="https://github.com/WoLpH/numpy-stl"
|
|
|
|
# s390x: no py3-utils
|
|
|
|
arch="noarch !s390x"
|
|
|
|
license="BSD-3-Clause"
|
|
|
|
depends="python3 py3-utils py3-numpy"
|
2024-11-01 14:11:09 +00:00
|
|
|
makedepends="py3-setuptools py3-gpep517"
|
2024-12-01 00:49:37 +00:00
|
|
|
checkdepends="py3-pytest py3-pytest-cov py3-pygments"
|
2024-01-19 04:48:28 +00:00
|
|
|
subpackages="$pkgname-pyc"
|
2024-12-01 00:49:37 +00:00
|
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/wolph/numpy-stl/archive/refs/tags/v$pkgver.tar.gz"
|
2024-01-19 04:48:28 +00:00
|
|
|
builddir="$srcdir/numpy-stl-$pkgver"
|
|
|
|
|
|
|
|
build() {
|
2024-11-01 14:11:09 +00:00
|
|
|
gpep517 build-wheel \
|
|
|
|
--wheel-dir .dist \
|
|
|
|
--output-fd 3 3>&1 >&2
|
2024-01-19 04:48:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2024-11-01 14:11:09 +00:00
|
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
2024-01-19 04:48:28 +00:00
|
|
|
# deselected test needs xvfb-run and fails
|
2024-11-01 14:11:09 +00:00
|
|
|
.testenv/bin/python3 -m pytest \
|
2024-01-19 04:48:28 +00:00
|
|
|
--deselect tests/test_ascii.py::test_use_with_qt_with_custom_locale_decimal_delimeter
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-11-01 14:11:09 +00:00
|
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
|
|
.dist/*.whl
|
2024-01-19 04:48:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2024-12-01 00:49:37 +00:00
|
|
|
a08053ed264dbfd629229af3db9c38deed2932b28feced56e2d4c20476f1ba85ddc80881fb82330ea3f4fff9a3f91da20db7447050da5c75f1c04455a67538dc py3-numpy-stl-3.2.0.tar.gz
|
2024-01-19 04:48:28 +00:00
|
|
|
"
|