From cdd11019368e8b079a5a6d3b8625b919cc9b0704 Mon Sep 17 00:00:00 2001
From: "Andrew J. Hesford" <ajh@sideband.org>
Date: Thu, 8 Feb 2024 15:36:21 -0500
Subject: [PATCH] python3-pip: update to 24.0.

---
 srcpkgs/python3-pip/patches/no-versioned-pip.patch |  8 ++++----
 srcpkgs/python3-pip/template                       | 10 +++++-----
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/srcpkgs/python3-pip/patches/no-versioned-pip.patch b/srcpkgs/python3-pip/patches/no-versioned-pip.patch
index 143e2a05e26..2f56d1d60aa 100644
--- a/srcpkgs/python3-pip/patches/no-versioned-pip.patch
+++ b/srcpkgs/python3-pip/patches/no-versioned-pip.patch
@@ -1,12 +1,12 @@
 --- a/setup.py
 +++ b/setup.py
-@@ -67,9 +67,7 @@
-     },
+@@ -5,9 +5,7 @@
+ setup(
      entry_points={
          "console_scripts": [
 -            "pip=pip._internal.cli.main:main",
-             "pip{}=pip._internal.cli.main:main".format(sys.version_info[0]),
+             f"pip{sys.version_info[0]}=pip._internal.cli.main:main",
 -            "pip{}.{}=pip._internal.cli.main:main".format(*sys.version_info[:2]),
          ],
      },
-     zip_safe=False,
+ )
diff --git a/srcpkgs/python3-pip/template b/srcpkgs/python3-pip/template
index c5785ca3b73..b2386d7c536 100644
--- a/srcpkgs/python3-pip/template
+++ b/srcpkgs/python3-pip/template
@@ -1,17 +1,17 @@
 # Template file for 'python3-pip'
 pkgname=python3-pip
-version=23.3.2
+version=24.0
 revision=1
-build_style=python3-module
-hostmakedepends="python3-setuptools"
-depends="python3-setuptools"
+build_style=python3-pep517
+hostmakedepends="python3-setuptools python3-wheel"
+depends="python3"
 short_desc="PyPA recommended tool for installing PyPI packages (Python3)"
 maintainer="Andrew J. Hesford <ajh@sideband.org>"
 license="MIT"
 homepage="https://pip.pypa.io/"
 changelog="https://raw.githubusercontent.com/pypa/pip/master/NEWS.rst"
 distfiles="${PYPI_SITE}/p/pip/pip-${version}.tar.gz"
-checksum=7fd9972f96db22c8077a1ee2691b172c8089b17a5652a44494a9ecb0d78f9149
+checksum=ea9bd1a847e8c5774a5777bb398c19e80bcd4e2aa16a4b301b718fe6f593aba2
 # Tests have unpackaged dependencies
 make_check=no