summaryrefslogtreecommitdiff
path: root/main/py3-certifi/APKBUILD
blob: e4c2414fa54f95b03d04828cb4872b91e43895e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Dmitry Romanenko <dmitry@romanenko.in>
pkgname=py3-certifi
pkgver=2022.9.24
pkgrel=0
pkgdesc="Python3 package for providing Mozilla's CA Bundle"
url="https://pypi.python.org/pypi/certifi"
arch="noarch"
license="MPL-2.0"
depends="python3 ca-certificates-bundle"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/c/certifi/certifi-$pkgver.tar.gz
	use-alpine-system-certs.patch
	"
builddir="$srcdir/certifi-$pkgver"

replaces="py-certifi" # Backwards compatibility
provides="py-certifi=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

# no tests provided
check() {
	PYTHONPATH=build/lib python3 -m certifi
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	# Remove bundled certificates, we use system certificates
	rm -f "$pkgdir"/usr/lib/python3*/site-packages/certifi/cacert.pem
}

sha512sums="
513af4266a288e24ffd8f7f6f5277758114538be1a0b596de65df8c925144eea237e7f63f18269a9cb8c1726355c46dca1883db6e18aa3fbb40c070d51dbb360  certifi-2022.9.24.tar.gz
1002ff4648c79ced36c27dde110415091685d0a73f346068b38f0110a3439ce01a5db94121a709bda4b91c1a6d1d760c69f7e304aec27690cfe28ca5be725796  use-alpine-system-certs.patch
"