summaryrefslogtreecommitdiff
path: root/user/py3-cryptography
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-26 22:15:25 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-26 22:15:25 -0600
commit9b07de55dfe6d50baeda3a8feda7f9fcade9c647 (patch)
tree91e144d369aca131b43dd8ad49113eb7392912ca /user/py3-cryptography
parent09427d6fc6905f67965861a01ed0e20f456aebc5 (diff)
downloadpackages-9b07de55dfe6d50baeda3a8feda7f9fcade9c647.tar.gz
packages-9b07de55dfe6d50baeda3a8feda7f9fcade9c647.tar.bz2
packages-9b07de55dfe6d50baeda3a8feda7f9fcade9c647.tar.xz
packages-9b07de55dfe6d50baeda3a8feda7f9fcade9c647.zip
user/py3*: modernise, fix syntax
Diffstat (limited to 'user/py3-cryptography')
-rw-r--r--user/py3-cryptography/APKBUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/user/py3-cryptography/APKBUILD b/user/py3-cryptography/APKBUILD
index 3aef0a2b6..a2f3c0091 100644
--- a/user/py3-cryptography/APKBUILD
+++ b/user/py3-cryptography/APKBUILD
@@ -10,9 +10,11 @@ pkgrel=0
pkgdesc="A package which provides cryptographic recipes and primitives"
url="https://pypi.org/project/cryptography"
arch="all"
-options="!check" # tests want hypothesis; deep rabbit hole
+options="!check" # See checkdepends comment below.
license="Apache-2.0 OR BSD-3-Clause"
depends="python3 py3-cffi py3-asn1crypto py3-six"
+# requires unpackaged py3-cryptography_vectors which makes no sense to package
+#checkdepends="py3-attrs py3-hypothesis py3-pretend py3-pytest py3-tz"
makedepends="python3-dev libffi-dev openssl-dev"
subpackages=""
source="https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz"
@@ -22,8 +24,11 @@ build() {
python3 setup.py build
}
+check() {
+ python3 setup.py test
+}
+
package() {
- mkdir -p "$pkgdir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}