From 875ceee46f5cb25e479860a545ef52b86c6e2a306ab5718cbdeada0ca5e2910d Mon Sep 17 00:00:00 2001
From: Matej Cepl <mcepl@suse.com>
Date: Fri, 18 Mar 2022 17:03:06 +0000
Subject: [PATCH] Accepting request 962618 from
 home:bnavigator:branches:devel:languages:python

- Update requirements: v22 is not compatible with Python 3.6 and
  thus not suitable for SLE/Leap 15.

OBS-URL: https://build.opensuse.org/request/show/962618
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=97
---
 python-pip.changes | 6 ++++++
 python-pip.spec    | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/python-pip.changes b/python-pip.changes
index 1e30a11..699472e 100644
--- a/python-pip.changes
+++ b/python-pip.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Fri Mar 18 09:32:29 UTC 2022 - Ben Greiner <code@bnavigator.de>
+
+- Update requirements: v22 is not compatible with Python 3.6 and
+  thus not suitable for SLE/Leap 15.
+
 -------------------------------------------------------------------
 Thu Mar 17 10:28:24 UTC 2022 - Matej Cepl <mcepl@suse.com>
 
diff --git a/python-pip.spec b/python-pip.spec
index 948478b..b06bf81 100644
--- a/python-pip.spec
+++ b/python-pip.spec
@@ -22,7 +22,7 @@
 %bcond_with libalternatives
 %endif
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%{?!python_module:%define python_module() python3-%{**}}
 %global flavor @BUILD_FLAVOR@%{nil}
 %if "%{flavor}" == "test"
 %define psuffix -test
@@ -50,6 +50,7 @@ URL:            http://www.pip-installer.org
 Source:         https://github.com/pypa/pip/archive/%{version}.tar.gz#/pip-%{version}-gh.tar.gz
 # PATCH-FIX-OPENSUSE pip-shipped-requests-cabundle.patch -- adapted patch from python-certifi package
 Patch0:         pip-shipped-requests-cabundle.patch
+BuildRequires:  %{python_module base >= 3.7}
 BuildRequires:  %{python_module setuptools >= 40.8.0}
 BuildRequires:  ca-certificates
 BuildRequires:  fdupes