46 lines
1.3 KiB
Bash
46 lines
1.3 KiB
Bash
# Template file for 'python-pipenv'
|
|
pkgname=python-pipenv
|
|
version=2020.6.2
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc="pipenv-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
pycompile_module="pipenv"
|
|
depends="python python-pip python-virtualenv python-virtualenv-clone"
|
|
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=7dd49a7345fa5da7843907bab42a996dece474e45dd309dbd7619739dc60478b
|
|
alternatives="
|
|
pipenv:pipenv:/usr/bin/pipenv2
|
|
pipenv:pipenv-resolver:/usr/bin/pipenv-resolver2
|
|
"
|
|
|
|
post_extract() {
|
|
sed -i '/certifi/d' setup.py
|
|
}
|
|
|
|
post_install() {
|
|
rm -rf ${DESTDIR}/usr/lib/python2*/site-packages/pipenv/patched/yaml3
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-pipenv_package() {
|
|
archs=noarch
|
|
depends="python3 python3-pip python3-virtualenv python3-virtualenv-clone"
|
|
pycompile_module="pipenv"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="
|
|
pipenv:pipenv:/usr/bin/pipenv3
|
|
pipenv:pipenv-resolver:/usr/bin/pipenv-resolver3
|
|
"
|
|
pkg_install() {
|
|
vmove usr/bin/*3
|
|
vmove usr/lib/python3*
|
|
rm -rf ${PKGDESTDIR}/usr/lib/python3*/site-packages/pipenv/patched/yaml2
|
|
vlicense LICENSE
|
|
}
|
|
}
|