Date: Thursday, January 28, 2021 @ 01:46:19
  Author: eschwartz
Revision: 833176

upgpkg: python-urwidtrees 1.0.3-5: backport patch to drop mock dependency

having python-mock installed on python > 3.3 is suboptimal, but upstream fixed
it for this package at least

Modified:
  python-urwidtrees/trunk/PKGBUILD

----------+
 PKGBUILD |   17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2021-01-28 01:37:20 UTC (rev 833175)
+++ PKGBUILD    2021-01-28 01:46:19 UTC (rev 833176)
@@ -4,16 +4,25 @@
 _pkgname=urwidtrees
 pkgname=python-urwidtrees
 pkgver=1.0.3
-pkgrel=4
+pkgrel=5
 pkgdesc="Tree widgets for urwid."
 arch=(any)
 url="https://github.com/pazz/$_pkgname";
 license=(GPL3)
 makedepends=(python-sphinx)
-depends=(python 'python-urwid>=1.1.0' 'python-mock')
-source=("$_pkgname-$pkgver.tar.gz::https://github.com/pazz/$_pkgname/archive/$pkgver.tar.gz";)
-md5sums=('44068550c3f538d64b667dc52eeca6cb')
+depends=(python 'python-urwid>=1.1.0')
+source=("$_pkgname-$pkgver.tar.gz::https://github.com/pazz/$_pkgname/archive/$pkgver.tar.gz";
+        
"https://github.com/pazz/urwidtrees/commit/ed39dbc4fc67b0e0249bf108116a88cd18543aa9.patch";)
+md5sums=('44068550c3f538d64b667dc52eeca6cb'
+         '7489b033cddaf0e655896b1a2fb2ea61')
 
+prepare() {
+       cd "$srcdir/$_pkgname-$pkgver"
+
+    # drop unneeded mock dependency: 
https://github.com/pazz/urwidtrees/issues/48
+    patch -p1 -i ../ed39dbc4fc67b0e0249bf108116a88cd18543aa9.patch
+}
+
 build() {
        cd "$srcdir/$_pkgname-$pkgver"
        python setup.py build

Reply via email to