aboutsummaryrefslogblamecommitdiffstats
path: root/community/py3-pyflakes/APKBUILD
blob: 77ed5814cf5c94f6650f18a8195c5ee6dd3e8a1f (plain) (tree)
1
2
3
4
5
6
7
8

                                                              
                                                      

                        

            
                                            


                                          

                            
                                                                                            

                                    


                                                                 
         


                              
         


                             
           
                                  
                                                   
 
                                                                       

 
                                                                                                                                                                    
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
# NOTE: ensure compatibility with py3-flake8! (#11378)
pkgname=py3-pyflakes
_pkgname=${pkgname#py3-}
pkgver=2.3.0
pkgrel=0
pkgdesc="passive checker of Python programs"
url="https://github.com/pyflakes/pyflakes"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-pyflakes" # Backwards compatibility
provides="py-pyflakes=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	mkdir -p "$pkgdir"/usr/bin
	ln -s pyflakes "$pkgdir"/usr/bin/pyflakes-3

	python3 setup.py --quiet install --prefix=/usr --root="$pkgdir"
}

sha512sums="e65e534139b7739e742eaa07e8803387f20bba0332247688c864ef8fab74d5851c68e9705cecae158c8d178ddbb08d54aea7ce77910979be1cc3fea57687fce4  pyflakes-2.3.0.tar.gz"