[arch-commits] Commit in python-cryptography/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Mon Feb 8 12:44:03 UTC 2021
Date: Monday, February 8, 2021 @ 12:44:03
Author: felixonmars
Revision: 407649
upgpkg: python-cryptography 3.4-1
Modified:
python-cryptography/trunk/PKGBUILD
----------+
PKGBUILD | 36 +++++++++++-------------------------
1 file changed, 11 insertions(+), 25 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-02-08 11:49:12 UTC (rev 407648)
+++ PKGBUILD 2021-02-08 12:44:03 UTC (rev 407649)
@@ -1,31 +1,27 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
-pkgbase=python-cryptography
-pkgname=('python-cryptography' 'python2-cryptography')
-pkgver=3.3.1
+pkgname=python-cryptography
+pkgver=3.4
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"
-makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six' 'python-cffi'
- 'python2-cffi' 'python2-enum34' 'python-pyasn1' 'python2-pyasn1' 'python-idna'
- 'python2-idna' 'python2-ipaddress' 'python-asn1crypto' 'python2-asn1crypto')
-checkdepends=('python-pytest-runner' "python-cryptography-vectors=$pkgver" 'python-iso8601'
- 'python-pretend' 'python-hypothesis' 'python-pytz')
+depends=('python')
+makedepends=('python-cffi' 'python-setuptools-rust')
+checkdepends=('python-pytest-runner' 'python-pytest-subtests' "python-cryptography-vectors=$pkgver"
+ 'python-iso8601' 'python-pretend' 'python-hypothesis' 'python-pytz')
source=("https://pypi.io/packages/source/c/cryptography/cryptography-$pkgver.tar.gz")
-sha512sums=('62192fe0fd3bb8844ccc0056ab72a42b038db2a4ecb0928543c520b85e1de93066dab0d604acf23d37395d68172b9618f81c6022a59ec49725bc1862096d15d1')
+sha512sums=('5d0d1b62d67e1722f19810738dcae7a9d9ca8b228c06b334486c37d836f20a37332aa59b975d0e4154e4ae91e18546280faf6e18bef8230da42948bc02920c9f')
prepare() {
- cp -a cryptography-${pkgver}{,-python2}
+ # https://github.com/pyca/cryptography/pull/5777
+ sed -i '/install_requires/d' cryptography-$pkgver/setup.py
}
build() {
- cd "$srcdir"/cryptography-$pkgver
+ cd cryptography-$pkgver
python setup.py build
-
- cd "$srcdir"/cryptography-$pkgver-python2
- python2 setup.py build
}
check() {
@@ -33,17 +29,7 @@
python setup.py pytest
}
-package_python-cryptography() {
- depends=('python-six' 'python-cffi' 'python-idna' 'python-setuptools' 'python-asn1crypto')
-
+package() {
cd cryptography-$pkgver
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
-
-package_python2-cryptography() {
- depends=('python2-six' 'python2-cffi' 'python2-enum34' 'python2-idna' 'python2-ipaddress'
- 'python2-setuptools' 'python2-asn1crypto')
-
- cd cryptography-$pkgver-python2
- python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
-}
More information about the arch-commits
mailing list