aports/community/py3-virtualenv/APKBUILD

56 lines
1.4 KiB
Plaintext

# Contributor: Sam Dodrill <shadowh511@gmail.com>
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-virtualenv
pkgver=20.26.3
pkgrel=0
pkgdesc="Virtual Python3 Environment builder"
url="https://virtualenv.pypa.io/en/latest/"
arch="noarch"
license="MIT"
depends="py3-platformdirs py3-distlib py3-filelock"
makedepends="
py3-gpep517
py3-hatchling
py3-hatch-vcs
py3-wheel
"
checkdepends="
py3-flaky
py3-pytest-env
py3-pytest-mock
py3-pytest-timeout
py3-pytest-xdist
py3-time-machine
python3-dev
"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/v/virtualenv/virtualenv-$pkgver.tar.gz"
builddir="$srcdir/virtualenv-$pkgver"
options="net" # fetches stuff during tests
replaces="py-virtualenv" # Backwards compatibility
provides="py-virtualenv=$pkgver-r$pkgrel" # Backwards compatibility
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest -n auto -v \
-k "not test_can_build_c_extensions"
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="
0cd3b4dc082d071305b44dd2aba2b28527e630b6b4bf28b7b6c59f3e061b01c1dfcfb64293f2b1904109e9e27b70a873cc8c3f1a3cde73bfee114943cef92ca7 virtualenv-20.26.3.tar.gz
"