blob: 55a623c900b340c2089de45b0a53d0d0e1246c21 (
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
|
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-tqdm
_pkgname=tqdm
pkgver=4.37.0
pkgrel=0
pkgdesc="Fast, Extensible Progress Meter"
options="!check" # Broken on our current Python build due to setuptools version conflict
url="https://pypi.python.org/pypi/tqdm"
arch="noarch"
license="MIT"
makedepends="py3-setuptools"
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"
replaces="py-tqdm" # Backwards compatibility
provides="py-tqdm=$pkgver-r$pkgrel" # Backwards compatibility
prepare() {
default_prepare
case "$CARCH" in
# FIXME: remove selected failing tests on selected arches
aarch64) rm tqdm/tests/tests_perf.py;;
s390x) rm tqdm/tests/tests_perf.py;;
x86) rm tqdm/tests/tests_synchronisation.py;;
esac
}
build() {
python3 setup.py build
}
check() {
python3 setup.py test
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
mv "$pkgdir"/usr/bin/tqdm "$pkgdir"/usr/bin/tqdm-3
mkdir -p "$pkgdir"/usr/bin
ln -s tqdm-3 "$pkgdir"/usr/bin/tqdm
}
sha512sums="17f5d93a07ef843dae018ec0ffd225340cfcd338e8ae145eae8da4fbc137d3b7fd200b498416ead44b001eea72cb6290e0dc109715b7870444c247f59112d07c tqdm-4.37.0.tar.gz
18be29842ec2444ac92e2748afab35bece67d9896ce8ba9b90f54fe717680203a45dad41887b217a95821c4b98307f23ebd3540fba0c76f581d38a844d8e4e15 0001-Skip-flaky-test-that-depends-on-GNU-coreutils.patch"
|