[arch-commits] Commit in (3 files)

Eli Schwartz eschwartz at archlinux.org
Mon Jan 8 06:46:53 UTC 2018


    Date: Monday, January 8, 2018 @ 06:46:47
  Author: eschwartz
Revision: 280394

New package needed for python-html5lib tests

Added:
  python-pytest-expect/
  python-pytest-expect/trunk/
  python-pytest-expect/trunk/PKGBUILD

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

Added: python-pytest-expect/trunk/PKGBUILD
===================================================================
--- python-pytest-expect/trunk/PKGBUILD	                        (rev 0)
+++ python-pytest-expect/trunk/PKGBUILD	2018-01-08 06:46:47 UTC (rev 280394)
@@ -0,0 +1,39 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=pytest-expect
+pkgbase='python-pytest-expect'
+pkgname=('python-pytest-expect' 'python2-pytest-expect')
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="py.test plugin to store test expectations and mark tests based on them"
+arch=('any')
+url="https://github.com/gsnedders/${_pkgname}"
+license=('MIT')
+makedepends=('python-pytest' 'python2-pytest' 'python-u-msgpack' 'python2-u-msgpack')
+source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+sha256sums=('8392093123dfc9807c28fee251e1d710aaed0d46ee77c7531528fb0a265eb798')
+
+build() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+
+  python setup.py build
+  python2 setup.py build
+}
+
+package_python-pytest-expect() {
+  depends=('python-pytest' 'python-u-msgpack')
+
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-pytest-expect() {
+  depends+=('python2-pytest' 'python2-u-msgpack')
+
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list