[arch-commits] Commit in python2-netlib/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Mon Feb 15 00:09:47 UTC 2016


    Date: Monday, February 15, 2016 @ 01:09:46
  Author: fyan
Revision: 161565

upgpkg: python2-netlib 0.16-1

Modified:
  python2-netlib/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++-------------
 1 file changed, 6 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-02-15 00:08:13 UTC (rev 161564)
+++ PKGBUILD	2016-02-15 00:09:46 UTC (rev 161565)
@@ -3,26 +3,21 @@
 # Contributor: Nicolas Pouillard https://nicolaspouillard.fr
 
 pkgname=python2-netlib
-pkgver=0.15.1
-pkgrel=3
+pkgver=0.16
+pkgrel=1
 pkgdesc="A collection of network utilities used by pathod and mitmproxy"
 url="https://github.com/mitmproxy/netlib"
 license=('MIT')
 arch=('any')
-depends=('python2-passlib' 'python2-pyasn1' 'python2-pyopenssl' 'python2-hpack')
+depends=('python2-passlib' 'python2-pyasn1' 'python2-pyopenssl' 'python2-hpack' 'python2-hyperframe' 'python2-six')
 makedepends=('python2-setuptools')
-checkdepends=('python2-nose' 'python2-mock' 'pathod')
+checkdepends=('python2-mock' 'python2-pytest-runner')
 source=("http://pypi.python.org/packages/source/n/netlib/netlib-$pkgver.tar.gz")
-sha256sums=('f55ad129b770fcf82786fb59d3e4f4291ea4c6dca4e4850bce1977bd9e99492e')
+sha256sums=('c70ed1915a5662c9ffce4dc97d143209e009cf0035a2f692031a6c47e87e6002')
 
 prepare() {
   cd netlib-$pkgver
 
-  # Allow cryptography 1.2.*, hpack 2.1.*
-  sed -e 's/cryptography>=1.1.1, <1.2/cryptography>=1.1.1, <1.3/' \
-      -e 's/hpack>=2.0.1, <2.1/hpack>=2.0.1, <3.0/' \
-      -i setup.py
-
   # Use system certificate store, and system ssl.match_hostname
   sed -e '/certifi/d' \
       -e '/backports.ssl_match_hostname/d' \
@@ -40,7 +35,7 @@
 
 check() {
   cd "$srcdir/netlib-$pkgver"
-  nosetests2
+  python2 setup.py ptr
 }
 
 package() {
@@ -48,6 +43,4 @@
   python2 setup.py install -O1 --skip-build --root="$pkgdir"
 
   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-
-  mv "$pkgdir/usr/lib/python2.7/site-packages/"{test,netlib/}
 }



More information about the arch-commits mailing list