Skip to content
Snippets Groups Projects
APKBUILD 1.3 KiB
Newer Older
# 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.37.0
_tagname="${pkgver//./_}"
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
	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="
dfa87d2f9874c703bd3a9357fa82d52f9fed5048176489e235e0a41085b85a02a389a8e22cc9ff9c756216920008d9fbe5a69ac5c0e981cbcca6793e376f12ac  ducc-ducc0_0_37_0.tar.gz