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

Felix Yan felixonmars at archlinux.org
Sat Dec 24 10:55:53 UTC 2016


    Date: Saturday, December 24, 2016 @ 10:55:52
  Author: felixonmars
Revision: 201360

archrelease: copy trunk to community-staging-any

Added:
  python-webencodings/repos/community-staging-any/
  python-webencodings/repos/community-staging-any/PKGBUILD
    (from rev 201359, python-webencodings/trunk/PKGBUILD)

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

Copied: python-webencodings/repos/community-staging-any/PKGBUILD (from rev 201359, python-webencodings/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-24 10:55:52 UTC (rev 201360)
@@ -0,0 +1,38 @@
+# Maintainer: Jelle van der Waa <jelle at vdwaa.nl>
+# Contributor: Jelle van der Waa <jelle at vdwaa.nl>
+
+pkgbase=python-webencodings
+pkgname=('python2-webencodings' 'python-webencodings')
+pkgver=0.5
+pkgrel=2
+arch=('any')
+url="https://github.com/gsnedders/python-webencodings"
+license=('BSD')
+makedepends=('python2' 'python' 'python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python2-nose')
+source=(https://github.com/gsnedders/python-webencodings/archive/v$pkgver.tar.gz)
+md5sums=('380cd5f79cd65620bd5b852528dce3a6')
+
+package_python-webencodings() {
+pkgdesc="This is a Python implementation of the WHATWG Encoding standard."
+depends=('python')
+    cd ${srcdir}/${pkgbase}-${pkgver}
+
+    python3 setup.py install --root=${pkgdir}
+}
+
+package_python2-webencodings() {
+pkgdesc="This is a Python implementation of the WHATWG Encoding standard."
+depends=('python2')
+    cd ${srcdir}/${pkgbase}-${pkgver}
+
+    python2 setup.py install --root=${pkgdir}
+}
+
+check() {
+    cd ${srcdir}/${pkgbase}-${pkgver}/webencodings
+
+    nosetests tests.py
+
+    nosetests2 tests.py
+}



More information about the arch-commits mailing list