mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-nox
|
|
pkgver=2023.04.22
|
|
pkgrel=0
|
|
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"
|
|
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="
|
|
7425588b0ae87d66211a4fec1d204122a2adb114ddca866d2e66e1caff930f593af1540e5c88806894400ea8aba92037d3f458a98df05d6ac70662705426ee6e py3-nox-2023.04.22.tar.gz
|
|
"
|