aports/community/py3-ducc0/APKBUILD
2025-05-18 14:43:03 +00:00

49 lines
1.3 KiB
Text

# Contributor: Philipp Arras <c@philipp-arras.de>
# Maintainer: Philipp Arras <c@philipp-arras.de>
maintainer="Philipp Arras <c@philipp-arras.de>"
pkgname=py3-ducc0
_pyname=ducc0
pkgver=0.38.0
_tagname="${pkgver//./_}"
pkgrel=0
pkgdesc="Efficient algorithms for Fast Fourier transforms and more"
url="https://gitlab.mpcdf.mpg.de/mtr/ducc"
arch="all !x86" # x86 currently broken. To be fixed upstream.
license="GPL-2.0-or-later"
depends="python3"
makedepends="
py3-gpep517
py3-pybind11-dev
py3-scikit-build-core
py3-setuptools
py3-wheel
python3-dev
"
checkdepends="py3-pytest-xdist py3-numpy"
_pynametag="$_pyname"_"$_tagname"
source="https://gitlab.mpcdf.mpg.de/mtr/ducc/-/archive/$_pynametag/ducc-$_pynametag.tar.gz"
builddir="$srcdir/ducc-$_pynametag"
build() {
DUCC0_OPTIMIZATION=portable \
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 python/test
}
package() {
DUCC0_OPTIMIZATION=portable \
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
40790ab37494147e75aeb53df1229047892f9854e9784a98c65eb278cc8d471f70216f5fc21d51dbe88604505bcab9fcf0daa925c4c7364d44bf8f4205d196d3 ducc-ducc0_0_38_0.tar.gz
"