Date: Saturday, March 25, 2023 @ 01:16:46
Author: felixonmars
Revision: 471986
archrelease: copy trunk to testing-x86_64
Added:
python-cryptography/repos/testing-x86_64/
python-cryptography/repos/testing-x86_64/PKGBUILD
(from rev 471985, python-cryptography/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-cryptography/repos/testing-x86_64/PKGBUILD (from rev 471985,
python-cryptography/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2023-03-25 01:16:46 UTC (rev 471986)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-cryptography
+pkgver=40.0.0
+_commit=45e37718098edca2c5ac2135394bcf17fd7982f0
+pkgrel=1
+pkgdesc="A package designed to expose cryptographic recipes and primitives to
Python developers"
+arch=('x86_64')
+license=('Apache')
+url="https://pypi.python.org/pypi/cryptography"
+depends=('python-cffi')
+makedepends=('git' 'python-setuptools-rust')
+checkdepends=('python-pytest' 'python-pytest-subtests' 'python-iso8601'
'python-pretend'
+ 'python-hypothesis' 'python-pytz' 'python-pytest-benchmark')
+source=("git+https://github.com/pyca/cryptography.git#commit=$_commit")
+sha512sums=('SKIP')
+
+build() {
+ cd cryptography
+ python setup.py build
+}
+
+check() {
+ cd cryptography
+ PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-310:$PWD/vectors" pytest
+}
+
+package() {
+ cd cryptography
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}