diff options
Diffstat (limited to 'community/py3-tomso/APKBUILD')
-rw-r--r-- | community/py3-tomso/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/community/py3-tomso/APKBUILD b/community/py3-tomso/APKBUILD new file mode 100644 index 00000000000..77ee37a0990 --- /dev/null +++ b/community/py3-tomso/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu> +# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu> +pkgname=py3-tomso +_pkgorig=tomso +pkgver=0.2.1 +pkgrel=4 +pkgdesc="Tools for Models of Stars and their Oscillations" +url="https://github.com/warrickball/tomso" +arch="noarch" +license="MIT" +depends="python3 py3-numpy" +checkdepends="py3-pytest-xdist" +makedepends="py3-gpep517 py3-setuptools py3-wheel" +subpackages="$pkgname-pyc" +source="https://github.com/warrickball/tomso/archive/v$pkgver/$_pkgorig-$pkgver.tar.gz" +builddir="$srcdir/$_pkgorig-$pkgver" +options="!check" #tests retrieve some online data + +build() { + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 3 3>&1 >&2 +} + +check() { + python3 -m venv --clear --without-pip --system-site-packages .testenv + .testenv/bin/python3 -m installer .dist/*.whl + .testenv/bin/python3 -m pytest -n auto +} + +package() { + python3 -m installer -d "$pkgdir" \ + .dist/*.whl +} + +sha512sums=" +df6f6d54072c84382735b24f3a10d1ec4bbe8154e75fb916fbd5b0eb7a307c4b3cf3ec9ef21869da68616ba9f5ce9f17452e563818ef2e28ceeda1789fb41e5e tomso-0.2.1.tar.gz +" |