void-packages/srcpkgs/python-pipenv/template

45 lines
1.1 KiB
Bash
Raw Normal View History

2019-02-12 10:38:10 +00:00
# Template file for 'python-pipenv'
pkgname=python-pipenv
version=2018.11.26
2019-02-12 12:24:54 +00:00
revision=3
archs=noarch
2019-02-12 10:38:10 +00:00
wrksrc="pipenv-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
pycompile_module="pipenv"
2019-02-12 12:24:54 +00:00
depends="python python-pip python-virtualenv python-virtualenv-clone"
2019-02-12 10:38:10 +00:00
short_desc="Python Development Workflow for Humans"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="MIT"
homepage="https://github.com/pypa/pipenv"
distfiles="${PYPI_SITE}/p/pipenv/pipenv-${version}.tar.gz"
checksum=a673e606e8452185e9817a987572b55360f4d28b50831ef3b42ac3cab3fee846
2019-02-12 10:46:14 +00:00
alternatives="
2019-02-12 12:24:54 +00:00
pipenv:pipenv:/usr/bin/pipenv2
pipenv:pipenv-resolver:/usr/bin/pipenv-resolver2
2019-02-12 10:46:14 +00:00
"
2019-02-12 10:38:10 +00:00
2019-02-12 12:24:54 +00:00
post_extract() {
sed -i '/certifi/d' setup.py
}
2019-02-12 10:38:10 +00:00
post_install() {
vlicense LICENSE
}
python3-pipenv_package() {
archs=noarch
2019-02-12 12:24:54 +00:00
depends="python3 python3-pip python3-virtualenv python3-virtualenv-clone"
2019-02-12 10:38:10 +00:00
pycompile_module="pipenv"
short_desc="${short_desc/Python2/Python3}"
2019-02-12 10:46:14 +00:00
alternatives="
2019-02-12 12:24:54 +00:00
pipenv:pipenv:/usr/bin/pipenv3
pipenv:pipenv-resolver:/usr/bin/pipenv-resolver3
2019-02-12 10:46:14 +00:00
"
2019-02-12 10:38:10 +00:00
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense LICENSE
}
}