1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 10:15:12 +03:00
aports/community/py3-tox/APKBUILD
2023-02-22 10:00:58 +01:00

53 lines
1.2 KiB
Text

# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=py3-tox
_pkgname=${pkgname#py3-*}
pkgver=4.4.6
pkgrel=0
pkgdesc="virtualenv management and test command line tool"
options="!check" # Requires community/py3-pathlib2, and unpackaged flaky
url="https://tox.readthedocs.org/"
arch="noarch"
license="MIT"
depends="
py3-cachetools
py3-chardet
py3-colorama
py3-filelock
py3-packaging
py3-platformdirs
py3-pluggy
py3-pyproject-api
py3-virtualenv
python3
"
makedepends="
py3-gpep517
py3-hatch-vcs
py3-hatchling
"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-tox" # Backwards compatibility
provides="py-tox=$pkgver-r$pkgrel" # Backwards compatibility
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 setup.py test
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
d94b37cefc5b2bfd99c3e26fcbc1086f60d42c522b2173d8fc4e091085481775b096044e777cc9bc4e496f955edf25f93af491be0d8e592b6c61212d0dd4ec92 tox-4.4.6.tar.gz
"