[2/4] python3-pip: New package

Message ID 879ecb00-f927-edc8-1cca-14c39f75f690@ipfire.org
State Dropped
Headers
Series [1/4] python3-wheel: New package |

Commit Message

Peter Müller 1 Dec 2022, 6:53 p.m. UTC
  Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
---
 python3-pip/python3-pip.nm | 46 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 python3-pip/python3-pip.nm
  

Patch

diff --git a/python3-pip/python3-pip.nm b/python3-pip/python3-pip.nm
new file mode 100644
index 000000000..0a5f03345
--- /dev/null
+++ b/python3-pip/python3-pip.nm
@@ -0,0 +1,46 @@ 
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = python3-pip
+version    = 22.3.1
+release    = 1
+arch       = noarch
+thisapp    = pip-%{version}
+
+groups     = Development/Libraries
+url        = https://github.com/pypa/pip/
+license    = MIT and Python
+summary    = The package installer for Python.
+
+description
+	pip is the Python package installer. It integrates with virtualenv, doesn't
+	do partial installs, can save package state for replaying, can install from
+	non-egg sources, and can install from version control repositories.
+end
+
+source_dl = https://github.com/pypa/pip/archive/refs/tags/%{version}.tar.gz#/
+
+build
+	requires
+		python3
+		python3-devel
+		python3-setuptools
+		python3-wheel
+	end
+
+	export SETUPTOOLS_INSTALL_WINDOWS_SPECIFIC_FILES = 0
+
+	build
+		%{python3} setup.py build
+	end
+
+	install
+		%{python3} setup.py install
+	end
+end
+
+packages
+	package %{name}
+end