blob: 4dbb33d72a8603ea9d4f23de4b932e6462b1b9b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py-tqdm
_pkgname=tqdm
pkgver=4.29.0
pkgrel=1
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"
builddir="$srcdir/$_pkgname-$pkgver"
prepare() {
default_prepare
cd "$builddir"
case "$CARCH" in
# XXX: Perf tests fail on aarch64 builder.
aarch64) rm tqdm/tests/tests_perf.py;;
esac
}
build() {
cd "$builddir"
python2 setup.py build
python3 setup.py build
}
check() {
cd "$builddir"
python2 setup.py test
# Broken on our current Python build due to setuptools version conflict
#python3 setup.py test
}
package() {
mkdir -p "$pkgdir"/usr/bin
ln -s tqdm-3 "$pkgdir"/usr/bin/tqdm
}
_py() {
local python="$1"
local pyver="${python:6:1}"
pkgdesc="$pkgdesc ($python)"
depends="$python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
cd "$subpkgdir"
# Add version suffix to executable.
mv usr/bin/tqdm usr/bin/tqdm-$pyver
}
_py2() {
_py python2
}
_py3() {
_py python3
}
sha512sums="1b4cb95d5bc8dbbf48530a7ab66395a77813350780f48228ad858831ce017993643978a2582b093ab15574d39c054f76ff9bc0ebd1391607be62b4913e83c3e3 tqdm-4.29.0.tar.gz
227b39f92ef529762c455d6cb82a84f05af00a7d72b505082a749c1de959ab7814ef0b3b07df62c77ebc184671f5579718f000eaafa534b775b58427de935e96 0001-Skip-flaky-test-that-depends-on-GNU-coreutils.patch"
|