[arch-commits] Commit in python-cryptography/repos (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 18:25:34 UTC 2021


    Date: Tuesday, November 30, 2021 @ 18:25:34
  Author: foutrelis
Revision: 429698

archrelease: copy trunk to staging-x86_64

Added:
  python-cryptography/repos/staging-x86_64/
  python-cryptography/repos/staging-x86_64/PKGBUILD
    (from rev 429697, python-cryptography/trunk/PKGBUILD)

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Copied: python-cryptography/repos/staging-x86_64/PKGBUILD (from rev 429697, python-cryptography/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2021-11-30 18:25:34 UTC (rev 429698)
@@ -0,0 +1,35 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-cryptography
+pkgver=35.0.0
+pkgrel=2
+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=('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=('447fd81ea82bd5875f14b3dca0fe6c1e8ebe661485252b00c3a19ab91bc0261289fbc59f9a22ba9317e8ba01f7f197c90ca6973f9d87a5d8851eeff2e1168d1d')
+
+prepare() {
+  # https://github.com/pyca/cryptography/pull/5777
+  sed -i '/install_requires/d' cryptography-$pkgver/setup.py
+}
+
+build() {
+  cd cryptography-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd cryptography-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd cryptography-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}



More information about the arch-commits mailing list