# Maintainer: pkgname=py3-tqdm _pkgname=tqdm pkgver=4.65.0 pkgrel=0 pkgdesc="Fast, Extensible Progress Meter" url="https://pypi.org/project/tqdm" arch="noarch" license="MIT" depends="python3" makedepends="py3-setuptools py3-setuptools_scm py3-gpep517 py3-wheel py3-installer" checkdepends="py3-pandas py3-pytest py3-pytest-asyncio py3-pytest-timeout" subpackages="$pkgname-pyc" 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 } build() { export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { # 30s timeout pytest -k 'not test_lock_args' } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl ln -s tqdm "$pkgdir"/usr/bin/tqdm-3 } sha512sums=" 86315b57d8ceec69ee8970b25372b26b03d2d37f6d06e037e712bf16c7f56eac1c4049291e451c7df62273b91ba7149b400efd0186ceee90268d854e7b476c47 tqdm-4.65.0.tar.gz "