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

Felix Yan felixonmars at archlinux.org
Wed Feb 27 18:01:21 UTC 2019


    Date: Wednesday, February 27, 2019 @ 18:01:19
  Author: felixonmars
Revision: 346907

archrelease: copy trunk to testing-x86_64

Added:
  python-cryptography/repos/testing-x86_64/
  python-cryptography/repos/testing-x86_64/PKGBUILD
    (from rev 346906, python-cryptography/trunk/PKGBUILD)

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

Copied: python-cryptography/repos/testing-x86_64/PKGBUILD (from rev 346906, python-cryptography/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2019-02-27 18:01:19 UTC (rev 346907)
@@ -0,0 +1,54 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-cryptography
+pkgname=('python-cryptography' 'python2-cryptography')
+pkgver=2.6
+pkgrel=1
+pkgdesc="A package designed to expose cryptographic recipes and primitives to Python developers"
+arch=('x86_64')
+license=('Apache')
+url="http://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' 'python2-pytest-runner' "python-cryptography-vectors=$pkgver"
+              "python2-cryptography-vectors=$pkgver" 'python-iso8601' 'python2-iso8601'
+              'python-pretend' 'python2-pretend' 'python-hypothesis' 'python2-hypothesis'
+              'python-pytz' 'python2-pytz')
+source=("https://pypi.io/packages/source/c/cryptography/cryptography-$pkgver.tar.gz")
+sha512sums=('58ec6c68cdeadf023b65a216d6e6571010ebd9e2e926fbf6357ef81addfad783ba72c9a1847b1736777f8b1f80d394abe33001a49e62f5d587dd83c1bf5162e6')
+
+prepare() {
+  cp -a cryptography-${pkgver}{,-python2}
+}
+
+build() {
+  cd "$srcdir"/cryptography-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/cryptography-$pkgver-python2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/cryptography-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/cryptography-$pkgver-python2
+  python2 setup.py pytest
+}
+
+package_python-cryptography() {
+  depends=('python-six' 'python-cffi' 'python-idna' 'python-setuptools' 'python-asn1crypto')
+
+  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