summaryrefslogblamecommitdiff
path: root/user/py3-packaging/APKBUILD
blob: c8379180bba14228690fd121a135bac18cdbef37 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                     
                      
           


                                            
                                                      
                     
                                     
                                                 
                         
                                      
                                                                                                                      

                                    


                              
                                     

           


                                                               
                                                                                                                                                                       
                                                                                                                                                   
# Contributor: Brandon Bergren <git@bdragon.rtk0.net>
# Maintainer: Brandon Bergren <git@bdragon.rtk0.net>
pkgname=py3-packaging
_pkgname=packaging
_p="${_pkgname#?}"
_p="${_pkgname%"$_p"}"
pkgver=19.2
pkgrel=0
pkgdesc="Core utilities for Python packages"
url="https://pypi.python.org/pypi/packaging"
arch="noarch"
options="!check"  # Cyclic dependency with py3-pytest.
# Certified net clean
license="Apache-2.0 AND BSD-2-Clause"
depends="python3 py3-attrs py3-pyparsing py3-six"
makedepends="python3-dev"
#checkdepends="py3-pytest py3-pretend"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz
	test-glibc.patch"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$builddir" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

}

sha512sums="af7312a85292f577d3e6e57154f10fb380bbdee749344ba4b226a09f22bf5ca664ed63c62cd5b4dea0be5eb5cff5c17ad04415aab8c925fa90dcae2e1c6dee5a  py3-packaging-19.2.tar.gz
d67e8f3eae1b7571edf705ba532e1c9a6dc4c241cb01dfeda8addb587c2039114b0e21e73140369e4a30d0256a2073ac877737458cb95006029e7ce44d0bae93  test-glibc.patch"