aports/main/py3-certifi/APKBUILD
2024-12-27 11:18:25 +00:00

39 lines
1.3 KiB
Text

# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Dmitry Romanenko <dmitry@romanenko.in>
pkgname=py3-certifi
pkgver=2024.12.14
pkgrel=0
pkgdesc="Python3 package for providing Mozilla's CA Bundle"
url="https://pypi.org/project/certifi"
arch="noarch"
license="MPL-2.0"
depends="ca-certificates-bundle"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/c/certifi/certifi-$pkgver.tar.gz
use-alpine-system-certs.patch
"
builddir="$srcdir/certifi-$pkgver"
options="!check" # no tests
replaces="py-certifi" # Backwards compatibility
provides="py-certifi=$pkgver-r$pkgrel" # Backwards compatibility
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
# Remove bundled certificates, we use system certificates
rm -f "$pkgdir"/usr/lib/python3*/site-packages/certifi/cacert.pem
}
sha512sums="
0936612fa973423f66d3a6f4aca195fa6311b82662c3d96d14b9430c44a854ace9deb4e68c076e6184a28953d76281f64b2fc2b73794325a8b770f32de1ac89a certifi-2024.12.14.tar.gz
1002ff4648c79ced36c27dde110415091685d0a73f346068b38f0110a3439ce01a5db94121a709bda4b91c1a6d1d760c69f7e304aec27690cfe28ca5be725796 use-alpine-system-certs.patch
"