From c46abbec5b97e8346cfcecc560cddc4f2724f086 Mon Sep 17 00:00:00 2001 From: andrewsc Date: Tue, 26 Apr 2022 20:26:19 +0000 Subject: [PATCH] upgpkg: python-pipenv 2022.4.21-2 - Added temporary requirements_downgrade.patch file to revert upstream requirements changes to what's available in Arch (at the time of writing). Upstream appears to have bumped requirements unintentionally. See: - https://github.com/pypa/pipenv/issues/5075 - https://github.com/pypa/pipenv/issues/5075#issuecomment-1109062812 git-svn-id: file:///srv/repos/svn-community/svn@1191061 9fca08f4-af9d-4005-b8df-a31f2cc04f65 --- python-pipenv/trunk/PKGBUILD | 13 ++++++++++--- python-pipenv/trunk/requirements_downgrade.patch | 16 ++++++++++++++++ 2 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 python-pipenv/trunk/requirements_downgrade.patch diff --git a/python-pipenv/trunk/PKGBUILD b/python-pipenv/trunk/PKGBUILD index 6345a077890c..593a0fd01a83 100644 --- a/python-pipenv/trunk/PKGBUILD +++ b/python-pipenv/trunk/PKGBUILD @@ -4,7 +4,7 @@ pkgname=python-pipenv pkgver=2022.4.21 -pkgrel=1 +pkgrel=2 pkgdesc="Sacred Marriage of Pipfile, Pip, & Virtualenv." url="https://pipenv.pypa.io" arch=('any') @@ -12,8 +12,15 @@ license=('MIT') depends=('python' 'python-pip' 'python-certifi' 'python-virtualenv-clone' 'python-virtualenv') makedepends=('python-setuptools') -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pypa/pipenv/archive/v${pkgver}.tar.gz") -sha512sums=('b79901c65d13a346c6666ff15284453069c58306228ae93c0257b473c2ef8efa2c8611071f1535d15253ce694929412546aba7988829b843b835e7862822a426') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/pypa/pipenv/archive/v${pkgver}.tar.gz" + "requirements_downgrade.patch") +sha512sums=('b79901c65d13a346c6666ff15284453069c58306228ae93c0257b473c2ef8efa2c8611071f1535d15253ce694929412546aba7988829b843b835e7862822a426' + 'a36117df9f9731e0c9393ac02434608191cd760e3e2c8e4d28fef6260c8db69edd7e08cffb321c8792eaa45b8b49cd68475593d11c9d90850cb9940d4472ee6b') + +prepare() { + cd "pipenv-${pkgver}" + patch -Np1 -i ../requirements_downgrade.patch +} build() { cd "pipenv-${pkgver}" diff --git a/python-pipenv/trunk/requirements_downgrade.patch b/python-pipenv/trunk/requirements_downgrade.patch new file mode 100644 index 000000000000..b879ac01c374 --- /dev/null +++ b/python-pipenv/trunk/requirements_downgrade.patch @@ -0,0 +1,16 @@ +diff --git a/setup.py b/setup.py +index d07a359a..42d29e0a 100644 +--- a/setup.py ++++ b/setup.py +@@ -21,9 +21,9 @@ if sys.argv[-1] == "publish": + sys.exit() + + required = [ +- "pip>=22.0.4", ++ "pip>=21.0.0", + "certifi", +- "setuptools>=60.0.0", ++ "setuptools>=59.5.0", + "virtualenv-clone>=0.2.5", + "virtualenv", + ]