aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-humanize
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-08-02 15:58:32 +0300
committerprspkt <prspkt@protonmail.com>2019-08-02 16:02:37 +0300
commit7d5ae8cd527ef4d635a269356cadeaa526a1770a (patch)
tree6d6dffe6ae97c4bcb4297e1e71672b4af9aba8ef /testing/py3-humanize
parent26567b9a9c19d083aa221860612af3554bd23e53 (diff)
downloadaports-7d5ae8cd527ef4d635a269356cadeaa526a1770a.tar.gz
aports-7d5ae8cd527ef4d635a269356cadeaa526a1770a.tar.bz2
aports-7d5ae8cd527ef4d635a269356cadeaa526a1770a.tar.xz
testing/py3-humanize: add checkdepends, run test suite
* Pypi sources do not provide a test suite, switch to github. Signed-off-by: prspkt <prspkt@protonmail.com>
Diffstat (limited to 'testing/py3-humanize')
-rw-r--r--testing/py3-humanize/APKBUILD9
1 files changed, 7 insertions, 2 deletions
diff --git a/testing/py3-humanize/APKBUILD b/testing/py3-humanize/APKBUILD
index 5db22fa0c2..01af0a42ac 100644
--- a/testing/py3-humanize/APKBUILD
+++ b/testing/py3-humanize/APKBUILD
@@ -10,7 +10,8 @@ arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
-source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+checkdepends="py3-mock"
+source="$_pkgname-$pkgver.tar.gz::https://github.com/jmoiron/humanize/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
replaces=py-humanize # Backwards compatibility
@@ -20,8 +21,12 @@ build() {
python3 setup.py build
}
+check() {
+ python3 setup.py test
+}
+
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="2727268d9fc7b393228f7eb9e71a5c881988ec56e265ddf83613fe57116da3aaad70d2417db4cef8a8c40cb73753eb2c2bd775d3cd25c2de751cb61373f0a551 humanize-0.5.1.tar.gz"
+sha512sums="dd7ad7f3c564cc6abcb6b128e50dbea7f19f7f418bfd936aae2472961c53ec71202133c5c2b5b930ef41ef807b51d6ba1210565627ed32c0b41acc0abd32a2d5 humanize-0.5.1.tar.gz"