From 1e6472edd15d77d3ab4ffeead964edead634443e Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 22 Dec 2017 12:07:11 -0800 Subject: testing/py-tqdm: new aport https://pypi.python.org/pypi/tqdm Fast, Extensible Progress Meter --- testing/py-tqdm/APKBUILD | 61 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 testing/py-tqdm/APKBUILD (limited to 'testing/py-tqdm/APKBUILD') diff --git a/testing/py-tqdm/APKBUILD b/testing/py-tqdm/APKBUILD new file mode 100644 index 00000000000..c12e83d6bd5 --- /dev/null +++ b/testing/py-tqdm/APKBUILD @@ -0,0 +1,61 @@ +# Maintainer: Drew DeVault +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" -- cgit v1.2.3