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

Bruno Pagani archange at archlinux.org
Sun Aug 9 12:31:33 UTC 2020


    Date: Sunday, August 9, 2020 @ 12:31:32
  Author: archange
Revision: 673136

upgpkg: python-pyscreenshot 2.2-1

Modified:
  python-pyscreenshot/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++++--------------
 1 file changed, 13 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-08-09 12:10:39 UTC (rev 673135)
+++ PKGBUILD	2020-08-09 12:31:32 UTC (rev 673136)
@@ -2,24 +2,23 @@
 
 _pkg=pyscreenshot
 pkgname=python-${_pkg}
-pkgver=1.0
+pkgver=2.2
 pkgrel=1
 pkgdesc="Copy the contents of the screen to a PIL or Pillow image memory"
 arch=(any)
 url="https://github.com/ponty/pyscreenshot"
 license=(BSD)
-depends=(python-easyprocess python-entrypoint2)
+depends=(python-easyprocess python-entrypoint2 python-mss python-jeepney)
 makedepends=(python-setuptools)
 checkdepends=(
-    python-nose python-pyvirtualdisplay python-pillow python-pygame
-    python-path.py python-xlib
-    python-gobject python-pyqt5 python-qtpy pyside2
-    xorg-server-xvfb xorg-xdpyinfo gnome-screenshot scrot imagemagick
+    python-pytest python-pyvirtualdisplay python-pillow python-path.py
+    python-xlib python-gobject python-pyqt5 python-qtpy python-wxpython
+    pyside2 xorg-server-xvfb xorg-xdpyinfo gnome-screenshot scrot imagemagick
+    maim pqiv
 )
-#PyPi tarball does not have tests
-#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
-source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('b1ccae937486cb304d5b3039e2b48d728df7ba67642b1a522b598e622936cfad')
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+#source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('dec8517cb18faf4f983dd2ee6636924e472a5644da1480ae871786dfcac244e9')
 
 build() {
   cd ${_pkg}-${pkgver}
@@ -27,12 +26,12 @@
 }
 
 check() {
-  cd ${_pkg}-${pkgver}/tests/
-  export PYTHONPATH="../build/lib/" 
+  cd ${_pkg}-${pkgver}
+  export PYTHONPATH="${PWD}/build/lib/" 
   python -m pyscreenshot.check.versions
   python -m pyscreenshot.check.speedtest --virtual-display
-  xvfb-run -s "-br -screen 0 400x500x24" \
-    nosetests -vv test_scrot.py test_imagemagick.py test_def.py test_pygdk3.py test_pyqt5.py test_qtpy.py test_pyside2.py easy
+  xvfb-run -n 101 -s "+extension RANDR -br -screen 0 900x800x24" python -m pytest -v
+  xvfb-run -n 102 -s "-extension RANDR -br -screen 0 900x800x24" python -m pytest -v
 }
 
 package() {



More information about the arch-commits mailing list