[arch-commits] Commit in python-pytest-xvfb/repos (2 files)

Bruno Pagani archange at archlinux.org
Fri Feb 21 15:41:33 UTC 2020


    Date: Friday, February 21, 2020 @ 15:41:33
  Author: archange
Revision: 577662

archrelease: copy trunk to community-any

Added:
  python-pytest-xvfb/repos/community-any/
  python-pytest-xvfb/repos/community-any/PKGBUILD
    (from rev 577661, python-pytest-xvfb/trunk/PKGBUILD)

----------+
 PKGBUILD |   31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Copied: python-pytest-xvfb/repos/community-any/PKGBUILD (from rev 577661, python-pytest-xvfb/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-02-21 15:41:33 UTC (rev 577662)
@@ -0,0 +1,31 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+_pkg=pytest-xvfb
+pkgname=python-${_pkg}
+pkgver=1.2.0
+pkgrel=1
+pkgdesc="pytest plugin to run Xvfb for tests"
+arch=(any)
+url="https://github.com/The-Compiler/pytest-xvfb"
+license=(MIT)
+depends=(python-pytest python-pyvirtualdisplay xorg-server-xvfb)
+makedepends=(python-setuptools)
+checkdepends=(xorg-xauth)
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+sha256sums=('a7544ca8d0c7c40db4b40d7a417a7b071c68d6ef6bdf9700872d7a167302f979')
+
+build() {
+  cd ${_pkg}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_pkg}-${pkgver}
+  PYTHONPATH="${PWD}/build/lib/" pytest
+}
+
+package() {
+  cd ${_pkg}-${pkgver}
+  python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}



More information about the arch-commits mailing list