From 7d834e85c125df575d029de38b8439a28acc1b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 20 Sep 2020 20:47:11 +0700 Subject: [PATCH] python-pipenv: drop package --- srcpkgs/python-pipenv/template | 49 --------------------------------- srcpkgs/python3-pipenv | 1 - srcpkgs/python3-pipenv/template | 26 +++++++++++++++++ 3 files changed, 26 insertions(+), 50 deletions(-) delete mode 100644 srcpkgs/python-pipenv/template delete mode 120000 srcpkgs/python3-pipenv create mode 100644 srcpkgs/python3-pipenv/template diff --git a/srcpkgs/python-pipenv/template b/srcpkgs/python-pipenv/template deleted file mode 100644 index 69490a04324..00000000000 --- a/srcpkgs/python-pipenv/template +++ /dev/null @@ -1,49 +0,0 @@ -# Template file for 'python-pipenv' -pkgname=python-pipenv -version=2020.8.13 -revision=1 -archs=noarch -wrksrc="pipenv-${version}" -build_style=python-module -hostmakedepends="python-setuptools python3-setuptools" -depends="python python-pip python-virtualenv python-virtualenv-clone" -short_desc="Python Development Workflow for Humans" -maintainer="Leah Neukirchen " -license="MIT" -homepage="https://github.com/pypa/pipenv" -distfiles="${PYPI_SITE}/p/pipenv/pipenv-${version}.tar.gz" -checksum=eff0e10eadb330f612edfa5051d3d8e775e9e0e918c3c50361da703bd0daa035 -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 - # remove files only valid for Python 3 - rm -f ${DESTDIR}/${py2_sitelib}/pipenv/vendor/importlib_resources/_py3.py - rm -f ${DESTDIR}/${py2_sitelib}/pipenv/vendor/jinja2/asyncsupport.py - rm -f ${DESTDIR}/${py2_sitelib}/pipenv/vendor/jinja2/asyncfilters.py - rm -f ${DESTDIR}/${py2_sitelib}/pipenv/vendor/pexpect/_async.py -} - -python3-pipenv_package() { - archs=noarch - depends="python3 python3-pip python3-virtualenv python3-virtualenv-clone" - 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 - } -} diff --git a/srcpkgs/python3-pipenv b/srcpkgs/python3-pipenv deleted file mode 120000 index d6f33a0fb33..00000000000 --- a/srcpkgs/python3-pipenv +++ /dev/null @@ -1 +0,0 @@ -python-pipenv \ No newline at end of file diff --git a/srcpkgs/python3-pipenv/template b/srcpkgs/python3-pipenv/template new file mode 100644 index 00000000000..cb295b593a8 --- /dev/null +++ b/srcpkgs/python3-pipenv/template @@ -0,0 +1,26 @@ +# Template file for 'python3-pipenv' +pkgname=python3-pipenv +version=2020.8.13 +revision=2 +wrksrc="pipenv-${version}" +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3 python3-pip python3-virtualenv python3-virtualenv-clone" +short_desc="Python Development Workflow for Humans" +maintainer="Leah Neukirchen " +license="MIT" +homepage="https://github.com/pypa/pipenv" +distfiles="${PYPI_SITE}/p/pipenv/pipenv-${version}.tar.gz" +checksum=eff0e10eadb330f612edfa5051d3d8e775e9e0e918c3c50361da703bd0daa035 +conflicts="python-pipenv>=0" + +post_extract() { + sed -i '/certifi/d' setup.py +} + +post_install() { + vlicense LICENSE + # remove files only valid for Python 2 + rm -rf ${DESTDIR}/${py3_sitelib}/pipenv/patched/yaml2 + rm -f ${DESTDIR}/${py3_sitelib}/pipenv/vendor/importlib_resources/_py2.py +}