[arch-commits] Commit in python-netaddr/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Wed Jan 18 14:46:19 UTC 2017


    Date: Wednesday, January 18, 2017 @ 14:46:18
  Author: anthraxx
Revision: 207884

upgpkg: python-netaddr 0.7.19-1

adding temporary upstream fixes for python3 tests

Modified:
  python-netaddr/trunk/PKGBUILD

----------+
 PKGBUILD |   20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-01-18 13:26:22 UTC (rev 207883)
+++ PKGBUILD	2017-01-18 14:46:18 UTC (rev 207884)
@@ -5,20 +5,24 @@
 pkgbase=python-netaddr
 pkgname=('python-netaddr' 'python2-netaddr')
 _pyname=netaddr
-pkgver=0.7.18
-pkgrel=4
-pkgdesc="A pure Python network address representation and manipulation library"
-url="https://github.com/drkjam/netaddr"
+pkgver=0.7.19
+pkgrel=1
+pkgdesc='Pure Python network address representation and manipulation library'
+url='https://github.com/drkjam/netaddr'
 arch=('any')
 license=('BSD')
 makedepends=('python-sphinx' 'python2-sphinx')
 checkdepends=('python-pytest' 'python2-pytest')
-source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/drkjam/${_pyname}/archive/${_pyname}-${pkgver}.tar.gz)
-sha512sums=('34da8f1b61925b4fb1997faff42aea047fad21c7bcda7a111dabe9b06773f6dfa501bee0fa1006c0e8bef02850bd16a68542330f0b793620ff068401f444d527')
+options=('!makeflags')
+source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/drkjam/${_pyname}/archive/${_pyname}-${pkgver}.tar.gz
+        fix-${pkgver}-python3.patch::https://github.com/drkjam/netaddr/commit/2ab73f10be7069c9412e853d2d0caf29bd624012.patch)
+sha512sums=('f07fb4de08aef4925dbc429b4ee93b25855273f083405d4e763c2fbc996ee35b09b87b10117040b073d45ac9f51512083116883ff48216e68aa1e429f83d5278'
+            '8db4e6cbaf03b95092561dfcf881616920da2ab45f205d8bd29f1f6e9e7681a7d591c0a52dbdb772a41cac0b42d643c2dafcad22a659524a35cb6b06dd98d38d')
 
 prepare() {
   cd ${_pyname}-${_pyname}-${pkgver}
   sed -r 's|#!/usr/bin/env python||g' -i netaddr/eui/ieee.py netaddr/ip/iana.py
+  patch -p1 < "${srcdir}/fix-${pkgver}-python3.patch"
 }
 
 build() {
@@ -28,8 +32,8 @@
 
 check() {
   cd ${_pyname}-${_pyname}-${pkgver}
-  py.test
-  py.test2
+  LC_ALL='en_US.UTF-8' py.test
+  LC_ALL='en_US.UTF-8' py.test2
 }
 
 package_python-netaddr() {



More information about the arch-commits mailing list