aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-hglib/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py-hglib/APKBUILD')
-rw-r--r--community/py-hglib/APKBUILD15
1 files changed, 11 insertions, 4 deletions
diff --git a/community/py-hglib/APKBUILD b/community/py-hglib/APKBUILD
index 042c68d03d..197fdf3615 100644
--- a/community/py-hglib/APKBUILD
+++ b/community/py-hglib/APKBUILD
@@ -2,21 +2,28 @@
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=py-hglib
_pkgname=python-hglib
-pkgver=2.4
+pkgver=2.5
pkgrel=0
pkgdesc="A fast and convenient interface to Mercurial's command server"
url="https://pypi.python.org/pypi/python-hglib"
arch="noarch"
license="MIT"
makedepends="mercurial python2-dev py-setuptools python3-dev"
+checkdepends="py-nose"
subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2"
source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
- python2 setup.py build || return 1
- python3 setup.py build || return 1
+ python2 setup.py build
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ python2 test.py
+ python3 test.py
}
package() {
@@ -42,4 +49,4 @@ _py3() {
_py python3
}
-sha512sums="91fff5b5badb798aa0a5a25d8544718afe545a53d1b4f5725abbf46a07a81fbbea12e3a8b05c874b4693668e3fc57362100844d7387ed3dc6dc7b50d3a7e8c52 python-hglib-2.4.tar.gz"
+sha512sums="6152094dcace80b6c6b927543d6450ef2eb0bf6ab86de966a025dba12fc0a95910a0aaea7df2491d320c00ee76a4c3f5dfb3cfbdaaaaa6c941a3322c1b0dbab9 python-hglib-2.5.tar.gz"