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

Eli Schwartz eschwartz at archlinux.org
Wed Jul 4 00:17:32 UTC 2018


    Date: Wednesday, July 4, 2018 @ 00:17:32
  Author: eschwartz
Revision: 351561

upgpkg: python-libtmux 0.8.0-2

python 3.7 rebuild
fix tests failing with tmux 2.7

Modified:
  python-libtmux/trunk/PKGBUILD

----------+
 PKGBUILD |   16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-03 22:54:02 UTC (rev 351560)
+++ PKGBUILD	2018-07-04 00:17:32 UTC (rev 351561)
@@ -3,7 +3,7 @@
 pkgbase=python-libtmux
 pkgname=('python-libtmux' 'python2-libtmux')
 pkgver=0.8.0
-pkgrel=1
+pkgrel=2
 pkgdesc="Python api for tmux"
 arch=('any')
 url="https://libtmux.git-pull.com/"
@@ -10,10 +10,14 @@
 license=('BSD')
 makedepends=('python-setuptools' 'python2-setuptools' 'tmux')
 checkdepends=('python-pytest' 'python2-pytest' 'procps-ng')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/tony/${_name}/archive/v${pkgver}.tar.gz")
-sha512sums=('9828e8d7c471b9f228c8a9e4e4369478a445ce4e25dece2a9f50652d30f4a778f9e769440fd34f582ab43436003bb06ae201475ba4116f5844bc44dc7f558874')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/tony/${_name}/archive/v${pkgver}.tar.gz"
+        "https://github.com/tmux-python/libtmux/commit/7443b60f6df60335bf2ecb199f25e57ec888fe65.patch")
+sha512sums=('9828e8d7c471b9f228c8a9e4e4369478a445ce4e25dece2a9f50652d30f4a778f9e769440fd34f582ab43436003bb06ae201475ba4116f5844bc44dc7f558874'
+            '55f8290ee7367b22282df57c1fa27dea20197003157d0c57270e3754ee2212588d09b3b09993205c0a2420c86185db142ae39cb51232c7cf6b893396d795ec4d')
 
 prepare() {
+  # https://github.com/tmux-python/libtmux/issues/117 is not BSD-specific
+  patch -p1 -d "${_name}-${pkgver}" < 7443b60f6df60335bf2ecb199f25e57ec888fe65.patch
   mv -v "${_name}-${pkgver}" "${pkgname[0]}-${pkgver}"
   cp -av "${pkgname[0]}-${pkgver}" "${pkgname[1]}-${pkgver}"
 }
@@ -27,12 +31,10 @@
 
 check() {
   cd "${pkgname[0]}-${pkgver}"
-  export PYTHONPATH=build:${PYTHONPATH}
-  py.test
+  python -m pytest
 
   cd ../"${pkgname[1]}-${pkgver}"
-  export PYTHONPATH=build:${PYTHONPATH}
-  py.test2
+  python2 -m pytest
 }
 
 package_python-libtmux() {



More information about the arch-commits mailing list