mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 18:45:05 +02:00
52 lines
1.3 KiB
Text
52 lines
1.3 KiB
Text
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-nox
|
|
pkgver=2025.05.01
|
|
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-dependency-groups
|
|
py3-packaging
|
|
py3-py
|
|
py3-setuptools
|
|
py3-virtualenv
|
|
py3-wheel
|
|
python3
|
|
"
|
|
makedepends="py3-gpep517 py3-hatchling"
|
|
checkdepends="py3-pytest py3-attrs"
|
|
options="net" # tests require
|
|
subpackages="$pkgname-pyc"
|
|
source="https://github.com/theacodes/nox/archive/$pkgver/py3-nox-$pkgver.tar.gz
|
|
fix-test.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="
|
|
1b1efac7dd78029d6c61122cdafde8077bfe2635a1d3441e848847e5c81da6cd9f2db102796b855520e9d239ee5b9b782e50b40e904c9bafafcc2f44cf61e871 py3-nox-2025.05.01.tar.gz
|
|
543d2e7a68a6dabaa5c0e1ceb1a578f5a0cd1a77ceda4f68007335edd1ead19cbcad064edcbc0addd95a905505e37ba9971b0d6e83fc281a65c96b1d0e1c6680 fix-test.patch
|
|
"
|