git » python-html5lib.git » commit 3b0acf1

upgpkg: 0.9999999-1

author Jelle van der Waa
2015-09-14 17:26:47 UTC
committer Jelle van der Waa
2015-09-14 17:26:47 UTC
parent 4141f229507ed412f42c945e5663b446c6c065ec

upgpkg: 0.9999999-1

PKGBUILD +12 -7

diff --git a/PKGBUILD b/PKGBUILD
index 57a56f0..931cf1c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,21 +3,18 @@
 
 pkgbase=python-html5lib
 pkgname=('python2-html5lib' 'python-html5lib')
-pkgver=0.999
-pkgrel=5
+pkgver=0.9999999
+pkgrel=1
 arch=('any')
 url="https://github.com/html5lib"
 license=('MIT')
 makedepends=('python2' 'python' 'unzip')
+checkdepends=('python-nose' 'python2-nose')
 source=($pkgbase-$pkgver.tar.gz::https://github.com/html5lib/html5lib-python/archive/${pkgver}.tar.gz
     LICENSE)
-md5sums=('f74b320f10d74df9cca8a08b42cb278c'
+md5sums=('2ca78b1ec5852779bc121a97da6e8d4d'
          '838c366f69b72c5df05c96dff79b35f2')
 
-build() {
-    /bin/true
-}
-
 package_python-html5lib() {
 pkgdesc="A Python HTML parser/tokenizer based on the WHATWG HTML5 spec"
 depends=('python' 'python-six')
@@ -35,3 +32,11 @@ pkgdesc="A Python2 HTML parser/tokenizer based on the WHATWG HTML5 spec"
     python2 setup.py install --root=${pkgdir}
     install -Dm755 $srcdir/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE  
 }
+
+check() {
+    cd ${srcdir}/html5lib-python-${pkgver}/html5lib/tests
+
+    nosetests2 
+  
+    nosetests
+}