# Contributions from Arch: # Maintainer: Jelle van der Waa # Contributor: Jelle van der Waa pkgbase=python-webencodings pkgname=('python2-webencodings' 'python3-webencodings') pkgver=0.5.1 pkgrel=1 arch=('any') url="https://github.com/gsnedders/python-webencodings" license=('BSD') makedepends=('python2' 'python3' 'python3-setuptools' 'python2-setuptools') checkdepends=('python3-nose' 'python2-nose') source=(https://github.com/gsnedders/python-webencodings/archive/v$pkgver.tar.gz) md5sums=('7eb67377743cd55eaa356496c439471e') package_python3-webencodings() { pkgdesc="This is a Python implementation of the WHATWG Encoding standard." depends=('python3') 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 nosetests3 tests.py nosetests2 tests.py }