void-packages/srcpkgs/python3-virtualenv/template

30 lines
1.1 KiB
Bash

# Template file for 'python3-virtualenv'
pkgname=python3-virtualenv
version=20.20.0
revision=1
build_style=python3-pep517
hostmakedepends="hatchling hatch-vcs"
depends="python3-platformdirs python3-distlib python3-filelock"
checkdepends="${depends} python3-pytest-mock python3-flaky python3-devel
python3-pip python3-packaging"
short_desc="Virtual Python environment builder"
maintainer="icp <pangolin@vivaldi.net>"
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=a8a4b8ca1e28f864b7514a253f98c1d62b64e31e77325ba279248c65fb4fcef4
alternatives="virtualenv:virtualenv:/usr/bin/virtualenv3"
do_check() {
local testdir="tmp/$(date +%s)"
python3 -m installer --destdir ${testdir} dist/virtualenv-${version}-*-*-*.whl
_skip="test_periodic_update or test_get_wheel_download_cached or test_py_pyc_missing or test_py_info_setuptools"
PATH="${testdir}/usr/bin:${PATH}" PYTHONPATH="${testdir}/${py3_sitelib}" pytest3 -k "not(${_skip})"
}
post_install() {
mv $DESTDIR/usr/bin/virtualenv $DESTDIR/usr/bin/virtualenv3
vlicense LICENSE
}