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

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 06:21:51 UTC 2020


    Date: Thursday, November 12, 2020 @ 06:21:51
  Author: foutrelis
Revision: 751311

Fix tests

Modified:
  python-path/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-12 06:10:52 UTC (rev 751310)
+++ PKGBUILD	2020-11-12 06:21:51 UTC (rev 751311)
@@ -13,11 +13,19 @@
 replaces=('python-path.py')
 conflicts=('python-path.py')
 provides=('python-path.py')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/jaraco/path/archive/v$pkgver.tar.gz")
-sha512sums=('3d499cf9a02381bd4f1aa4c515b91163881b928a2cdd19c6644239061c104bed22244f39a3a19d8376c296488bd6155d61308d33ddbc8a5a98e1d0d66d2515b5')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jaraco/path/archive/v$pkgver.tar.gz"
+        $pkgname-fix-pytest.patch::https://github.com/jaraco/path/commit/8117892ea5da.patch)
+sha512sums=('3d499cf9a02381bd4f1aa4c515b91163881b928a2cdd19c6644239061c104bed22244f39a3a19d8376c296488bd6155d61308d33ddbc8a5a98e1d0d66d2515b5'
+            'bfed90a657aa2a85eb03f88ae1bfb28a0322bcb30a87431ce30b31849ce938eb0bb98565d49aa07c8ccddb100e8d7dadd81e730da546649a87449508768aca9c')
 
 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
 
+prepare() {
+  cd path-$pkgver
+  sed -n '/--- a\/pytest.ini/,/junit_family/p' ../$pkgname-fix-pytest.patch |
+    patch -Np1
+}
+
 build() {
   cd path-$pkgver
   python setup.py build



More information about the arch-commits mailing list