Date: Saturday, September 10, 2022 @ 08:42:08
  Author: dvzrv
Revision: 1298793

upgpkg: python-certifi 2022.06.15.1-1: Upgrade to 2022.06.15.1

Switch to correct license (MPL2).
Switch to PEP517.
Switch to using documented way of using site-packages
(https://wiki.archlinux.org/title/Python_package_guidelines#Using_site-packages)
in package() to not break upon interpreter updates.

Modified:
  python-certifi/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-09-10 08:32:14 UTC (rev 1298792)
+++ PKGBUILD    2022-09-10 08:42:08 UTC (rev 1298793)
@@ -1,19 +1,20 @@
 # Maintainer: Felix Yan <[email protected]>
+# Maintainer: David Runge <[email protected]>
 # Contributor: Massimiliano Torromeo <[email protected]>
 # Contributor: William J Bowman <[email protected]>
 
 pkgname=python-certifi
-pkgver=2022.06.15 
+pkgver=2022.06.15.1
 pkgrel=1
 pkgdesc="Python package for providing Mozilla's CA Bundle (using system CA 
store)"
 arch=(any)
 url="https://github.com/certifi/python-certifi";
-license=('GPL')
+license=(MPL2)
 depends=('python' 'ca-certificates')
-makedepends=('python-setuptools')
+makedepends=(python-build python-installer python-setuptools python-wheel)
 checkdepends=('python-pytest')
 
source=("https://github.com/certifi/python-certifi/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('ffd2b2f38ff297cb49a6efe912d43b5b87bc028c8ee44f07276ac3a2a98186692e496b5579a544bfee2724214aa6e91397c679837ee856513cc8635e3470f34f')
+sha512sums=('615c5f659f3b5da78770e84d663e5e548c0a68dd07d14194e2984bb9c1d6378a9fbfd829ab9eeba38788b56348396a36ee38cf3f9b8921f2edb52c5951889cd1')
 
 prepare() {
   cd python-certifi-$pkgver
@@ -26,7 +27,7 @@
 
 build() {
   cd python-certifi-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -35,11 +36,13 @@
 }
 
 package() {
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+
   cd python-certifi-$pkgver
-  python setup.py install --skip-build -O1 --root="$pkgdir"
+  python -m installer --destdir="$pkgdir" dist/*.whl
 
   # Replace CA store here again because the symlink was installed as a file
-  ln -sf /etc/ssl/certs/ca-certificates.crt 
"$pkgdir"/usr/lib/python3.10/site-packages/certifi/cacert.pem
+  ln -sf /etc/ssl/certs/ca-certificates.crt 
"$pkgdir"/$site_packages/certifi/cacert.pem
 
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }

Reply via email to