void-packages/srcpkgs/python-virtualenv/template
2020-05-20 21:50:59 +02:00

32 lines
965 B
Bash

# Template file for 'python-virtualenv'
pkgname=python-virtualenv
version=20.0.20
revision=1
archs=noarch
wrksrc="virtualenv-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
short_desc="Virtual Python2 environment builder"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="MIT"
homepage="https://virtualenv.pypa.io/"
distfiles="${PYPI_SITE}/v/virtualenv/virtualenv-${version}.tar.gz"
checksum=fd0e54dec8ac96c1c7c87daba85f0a59a7c37fe38748e154306ca21c73244637
alternatives="virtualenv:virtualenv:/usr/bin/virtualenv2"
post_install() {
vlicense LICENSE
}
python3-virtualenv_package() {
archs=noarch
depends="python3-setuptools python3-appdirs python3-distlib python3-filelock python3-six"
short_desc="${short_desc/Python2/Python3}"
alternatives="virtualenv:virtualenv:/usr/bin/virtualenv3"
pkg_install() {
vmove usr/bin/virtualenv3
vmove usr/lib/python3*
vlicense LICENSE
}
}