mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 19:25:25 +03:00
53 lines
1.4 KiB
Text
53 lines
1.4 KiB
Text
# Maintainer: Drew DeVault <sir@cmpwn.com>
|
|
pkgname=py3-tqdm
|
|
_pkgname=tqdm
|
|
pkgver=4.64.1
|
|
pkgrel=1
|
|
pkgdesc="Fast, Extensible Progress Meter"
|
|
options="!check" # Broken on our current Python build due to setuptools version conflict
|
|
url="https://pypi.org/project/tqdm"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-setuptools"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
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 tests/tests_perf.py;;
|
|
s390x) rm tests/tests_perf.py;;
|
|
x86) rm tests/tests_synchronisation.py;;
|
|
esac
|
|
|
|
# Remove dep on py3-setuptools_scm
|
|
sed -e "s|use_scm_version=True|version='$pkgver'|" \
|
|
-i setup.py
|
|
sed -e '/setuptools_scm/d' -i setup.cfg
|
|
}
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --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="
|
|
bc7ab34145722229737d25d87895c8760b82271c345e1174c83f5896cc893f92a27901d83575472ad124329acdad69bd21e7d68e79aeeefb0e66c83b11989d18 tqdm-4.64.1.tar.gz
|
|
"
|