aboutsummaryrefslogblamecommitdiffstats
path: root/community/py3-tqdm/APKBUILD
blob: 9836985b4f818b91a76830f3cabb1d29e47e073d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                          
                
             
             
        
                                         
                                                                                        


                                       
                 
                            
                                                                                                          

                                    


                                                             

                       
                        
                                                                         
                                                      
                                                    
                                                             


            
         
                              


         
                             


           
                                                               
 
                                                          
 

                                           

 
                                                                                                                                                                 
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=py3-tqdm
_pkgname=tqdm
pkgver=4.50.2
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"
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 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="2d13473d3f7e85de1c62cc753bca2c2971acbfb8c1a0f99cebf248e9e384b5875ae655c41438abb9861d6c90051eec0d1a23af849f157359fa88c730718ecd33  tqdm-4.50.2.tar.gz"