29 lines
1.0 KiB
Bash
29 lines
1.0 KiB
Bash
# Template file for 'python3-virtualenv'
|
|
pkgname=python3-virtualenv
|
|
version=20.4.0
|
|
revision=1
|
|
wrksrc="virtualenv-${version}"
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools_scm"
|
|
depends="python3-setuptools python3-appdirs python3-distlib python3-filelock python3-six"
|
|
checkdepends="python3-pytest-mock python3-flaky python3-devel python3-pip $depends"
|
|
short_desc="Virtual Python environment builder"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="https://virtualenv.pypa.io/"
|
|
changelog="https://virtualenv.pypa.io/en/latest/changelog.html"
|
|
distfiles="${PYPI_SITE}/v/virtualenv/virtualenv-${version}.tar.gz"
|
|
checksum=219ee956e38b08e32d5639289aaa5bd190cfbe7dafcb8fa65407fca08e808f9c
|
|
alternatives="virtualenv:virtualenv:/usr/bin/virtualenv3"
|
|
|
|
do_check() {
|
|
# test_periodic_update* depends on pytest-freezegun, not packaged in Void
|
|
vsed -e '/addopts/d' -i setup.cfg
|
|
PYTHONPATH=src python3 -m pytest -k 'not test_periodic_update'
|
|
}
|
|
|
|
post_install() {
|
|
mv $DESTDIR/usr/bin/virtualenv $DESTDIR/usr/bin/virtualenv3
|
|
vlicense LICENSE
|
|
}
|