[arch-commits] Commit in python-cryptography/trunk (PKGBUILD pin-pytest.patch)

Felix Yan fyan at archlinux.org
Fri Dec 11 03:56:10 UTC 2015


    Date: Friday, December 11, 2015 @ 04:56:10
  Author: fyan
Revision: 255782

upgpkg: python-cryptography 1.1.2-1

Added:
  python-cryptography/trunk/pin-pytest.patch
Modified:
  python-cryptography/trunk/PKGBUILD

------------------+
 PKGBUILD         |   12 ++++++++----
 pin-pytest.patch |   13 +++++++++++++
 2 files changed, 21 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-12-11 03:54:21 UTC (rev 255781)
+++ PKGBUILD	2015-12-11 03:56:10 UTC (rev 255782)
@@ -3,7 +3,7 @@
 
 pkgbase=python-cryptography
 pkgname=('python-cryptography' 'python2-cryptography')
-pkgver=1.1.1
+pkgver=1.1.2
 pkgrel=1
 pkgdesc="A package designed to expose cryptographic recipes and primitives to Python developers"
 arch=('i686' 'x86_64')
@@ -14,11 +14,15 @@
 checkdepends=('python-pytest-runner' 'python2-pytest-runner' "python-cryptography-vectors=$pkgver" "python2-cryptography-vectors=$pkgver"
               'python-iso8601' 'python2-iso8601' 'python-pretend' 'python2-pretend' 'python-pyasn1-modules' 'python2-pyasn1-modules'
               'python-hypothesis' 'python2-hypothesis')
-source=("http://pypi.python.org/packages/source/c/cryptography/cryptography-${pkgver}.tar.gz")
-md5sums=('6ec05b916c52d8668cd3a3f6f1cea084')
+source=("http://pypi.python.org/packages/source/c/cryptography/cryptography-${pkgver}.tar.gz"
+        pin-pytest.patch)
+md5sums=('15eeba9e31f852bac21155baa3dfbc61'
+         '54f471441df9d3e825bf99946bf0ce1c')
 
 prepare() {
-   cp -a cryptography-${pkgver}{,-python2}
+  # We have patched pytest
+  (cd cryptography-${pkgver}; patch -Rp1 -i ../pin-pytest.patch)
+  cp -a cryptography-${pkgver}{,-python2}
 }
 
 build() {

Added: pin-pytest.patch
===================================================================
--- pin-pytest.patch	                        (rev 0)
+++ pin-pytest.patch	2015-12-11 03:56:10 UTC (rev 255782)
@@ -0,0 +1,13 @@
+diff --git a/setup.py b/setup.py
+index 19f1e66..43fe17e 100644
+--- a/setup.py
++++ b/setup.py
+@@ -59,7 +59,7 @@
+ 
+ # If you add a new dep here you probably need to add it in the tox.ini as well
+ test_requirements = [
+-    "pytest",
++    "pytest!=2.8.4",
+     "pretend",
+     "iso8601",
+     "hypothesis",



More information about the arch-commits mailing list