aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-nox/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-nox/APKBUILD')
-rw-r--r--community/py3-nox/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/community/py3-nox/APKBUILD b/community/py3-nox/APKBUILD
new file mode 100644
index 00000000000..db8df2cee59
--- /dev/null
+++ b/community/py3-nox/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
+# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
+pkgname=py3-nox
+pkgver=2024.03.02
+pkgrel=1
+pkgdesc="Flexible test automation for Python"
+url="https://nox.thea.codes/"
+arch="noarch"
+license="Apache-2.0"
+depends="
+ py3-argcomplete
+ py3-colorlog
+ py3-packaging
+ py3-py
+ py3-setuptools
+ py3-virtualenv
+ py3-wheel
+ python3
+ "
+makedepends="py3-gpep517 py3-hatchling"
+checkdepends="py3-pytest"
+subpackages="$pkgname-pyc"
+source="https://github.com/theacodes/nox/archive/$pkgver/py3-nox-$pkgver.tar.gz
+ skip-conda.patch
+ "
+builddir="$srcdir/nox-$pkgver"
+
+build() {
+ gpep517 build-wheel \
+ --wheel-dir .dist \
+ --output-fd 3 3>&1 >&2
+}
+
+check() {
+ python3 -m venv --clear --without-pip --system-site-packages test-env
+ test-env/bin/python3 -m installer \
+ .dist/nox*.whl
+ # all tox_to_nox tests have python2.7 hardcoded
+ test-env/bin/python3 -m pytest --ignore=tests/test_tox_to_nox.py
+}
+
+package() {
+ python3 -m installer -d "$pkgdir" \
+ .dist/nox*.whl
+}
+
+sha512sums="
+7b76d62ced6d6968fab489223fbe2af1270b19fe2f2376c2fef375c47ca1bce7de23a5686b7c8dc617cb0cd331a90b9806bf3b478c28e61294aa4ea453635dcb py3-nox-2024.03.02.tar.gz
+d034db2da608affcd7bfbf37c4ee6f9258dfb51f82625998f95e10784487919d5ab7fd30b465d3edfbc8e93a5200456598ab3a97e8c38859610742dd29ab0094 skip-conda.patch
+"