aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-tqdm/APKBUILD
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-12-22 12:07:11 -0800
committerNatanael Copa <ncopa@alpinelinux.org>2017-12-25 13:16:47 +0000
commit1e6472edd15d77d3ab4ffeead964edead634443e (patch)
tree1bc216d74b1c1c439f7a2a32a4e940d1aa39ecbd /testing/py-tqdm/APKBUILD
parent6df6bc96e3468c439afb53c37fefe81f37de9948 (diff)
downloadaports-1e6472edd15d77d3ab4ffeead964edead634443e.tar.bz2
aports-1e6472edd15d77d3ab4ffeead964edead634443e.tar.xz
testing/py-tqdm: new aport
https://pypi.python.org/pypi/tqdm Fast, Extensible Progress Meter
Diffstat (limited to 'testing/py-tqdm/APKBUILD')
-rw-r--r--testing/py-tqdm/APKBUILD61
1 files changed, 61 insertions, 0 deletions
diff --git a/testing/py-tqdm/APKBUILD b/testing/py-tqdm/APKBUILD
new file mode 100644
index 0000000000..c12e83d6bd
--- /dev/null
+++ b/testing/py-tqdm/APKBUILD
@@ -0,0 +1,61 @@
+# Maintainer: Drew DeVault <sir@cmpwn.com>
+pkgname=py-tqdm
+_pkgname=tqdm
+pkgver=4.19.5
+pkgrel=0
+pkgdesc="Fast, Extensible Progress Meter"
+url="https://pypi.python.org/pypi/tqdm"
+arch="noarch"
+license="MIT"
+makedepends="python2-dev python3-dev py-setuptools"
+subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2"
+source="
+ https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
+ 0001-Skip-flaky-test-that-depends-on-GNU-coreutils.patch
+ 0001-Import-sleep-nearer-to-usage.patch
+"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+prepare() {
+ cd "$builddir"
+ default_prepare || return 1
+}
+
+build() {
+ cd "$builddir"
+ python2 setup.py build || return 1
+ python3 setup.py build || return 1
+}
+
+check() {
+ cd "$builddir"
+ python2 setup.py test || return 1
+ # Broken on our current Python build due to setuptools version conflict
+ #python3 setup.py test || return 1
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py() {
+ local python="$1"
+ pkgdesc="$pkgdesc ${python:6:1}"
+ depends="$depends $python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+_py2() {
+ _py python2
+}
+
+_py3() {
+ _py python3
+}
+
+sha512sums="fff1946466e109bf020a6dbaca7e99b992c0335bc4b380224e981b2e0690a5ef465fdd95ee9473bdc0f0381897c5314cee715c600708d02892e0a109e5b9dbbe tqdm-4.19.5.tar.gz
+3e94642970da68ec422f78ba8aa080832ab3b2d2cb66b137d79dccd71921d0bb8796f97828b1eedd5751502a816bbd6a6d66fae238bd9a6fbc46c58f93d69636 0001-Skip-flaky-test-that-depends-on-GNU-coreutils.patch
+4d6b06028a8d8c4214dc57168fa50ccd19fea79b7099d5d695bf00a6e8f01ece76341dc992ce8bfb513140f3b425d29e428842a8ade417d758bf4c67474d65d0 0001-Import-sleep-nearer-to-usage.patch"