summaryrefslogtreecommitdiff
path: root/user/py3-certifi
diff options
context:
space:
mode:
Diffstat (limited to 'user/py3-certifi')
-rw-r--r--user/py3-certifi/APKBUILD30
-rw-r--r--user/py3-certifi/use-system-certs.patch13
2 files changed, 43 insertions, 0 deletions
diff --git a/user/py3-certifi/APKBUILD b/user/py3-certifi/APKBUILD
new file mode 100644
index 000000000..f4fa5f71e
--- /dev/null
+++ b/user/py3-certifi/APKBUILD
@@ -0,0 +1,30 @@
+# Maintainer: zlg <zlg+adelie@zlg.space>
+pkgname=py3-certifi
+_pkgname=${pkgname#py3-}
+pkgver=2018.10.15
+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/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
+ use-system-certs.patch"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ python3 setup.py build
+}
+
+package() {
+ mkdir -p "$pkgdir"
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="3324ae6c4b99dda6f48aa9f0918fe045a19b19b26fcfdcca4be93ec967b9e4112d863c982686837b327f1663e308250d56ea337caeeeeb96579e08b20fca92df certifi-2018.10.15.tar.gz
+1de38c55102b41bc91870b4810de89d8b0cffd61ba14257fe6c8445173b8b44153f2736050772eb63dd0a755890afe0f2d27516bbd39f05bf4016a4e29eebb67 use-system-certs.patch"
diff --git a/user/py3-certifi/use-system-certs.patch b/user/py3-certifi/use-system-certs.patch
new file mode 100644
index 000000000..bf315aa2f
--- /dev/null
+++ b/user/py3-certifi/use-system-certs.patch
@@ -0,0 +1,13 @@
+--- a/certifi/core.py 2018-01-18 12:27:24.000000000 -0800
++++ b/certifi/core.py 2018-11-20 18:08:48.230610538 -0800
+@@ -19,9 +19,7 @@
+
+
+ def where():
+- f = os.path.dirname(__file__)
+-
+- return os.path.join(f, 'cacert.pem')
++ return "/etc/ssl/certs/ca-certificates.crt"
+
+
+ def old_where():