aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pytest-mpi/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-pytest-mpi/APKBUILD')
-rw-r--r--community/py3-pytest-mpi/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/community/py3-pytest-mpi/APKBUILD b/community/py3-pytest-mpi/APKBUILD
new file mode 100644
index 00000000000..9a9f533c6eb
--- /dev/null
+++ b/community/py3-pytest-mpi/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Bart Ribbers <bribbers@disroot.org>
+# Maintainer: Bart Ribbers <bribbers@disroot.org>
+pkgname=py3-pytest-mpi
+pkgver=0.6
+pkgrel=3
+pkgdesc="pytest plugin to collect information from tests"
+url="https://pytest-mpi.readthedocs.io/en/latest/"
+arch="noarch"
+license="BSD-3-Clause"
+depends="
+ py3-mpi4py
+ python3
+ "
+makedepends="py3-setuptools"
+checkdepends="
+ py3-sybil
+ py3-pytest
+ "
+subpackages="$pkgname-pyc"
+source="https://pypi.python.org/packages/source/p/pytest-mpi/pytest-mpi-$pkgver.tar.gz"
+options="!check" # Errors everywhere
+builddir="$srcdir/pytest-mpi-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ PYTHONPATH="$PWD/build/lib" pytest -p pytester
+}
+
+package() {
+ python3 setup.py install --skip-build --root="$pkgdir"
+}
+
+sha512sums="
+6de01394739effdd5cae8e5e519dd4346a6e5ccf4443dc295d0cfd3eb4b8267d2202a01da2f20b6f8fff6fbe18d6e9eb6094f38cb00eba87b336d5e9f26a57c0 pytest-mpi-0.6.tar.gz
+"