# Contributor: zlg <zlg+adelie@zlg.space>
# Maintainer:
pkgname=py3-certifi
_pkgname=${pkgname#py3-}
pkgver=2019.11.28
pkgrel=0
pkgdesc="Python package for providing Mozilla's CA Bundle"
url="https://pypi.org/project/certifi"
arch="noarch"
options="!check" # no tests
license="MPL-2.0"
depends="python3 ca-certificates"
makedepends="python3-dev"
subpackages=""
source="https://files.pythonhosted.org/packages/source/c/$_pkgname/$_pkgname-$pkgver.tar.gz
	use-system-certs.patch"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

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

sha512sums="6821444f02db0d9d03ab1891731178af1d7858df3c729f079147a9c588cf97a456e050da3421a0d2a3559145610826669034a8d46cd50b7c76e90249db1b09ad  certifi-2019.11.28.tar.gz
f9c7d953b08d6ef87bae07605e2c09e9de1d1e60285fa1f5043beeae1d9f00f3b70fdf598585cd350df2632e22c0197ea2e8b76127e2927ad53880b60b349c9c  use-system-certs.patch"