aboutsummaryrefslogblamecommitdiffstats
path: root/community/py3-multidict/APKBUILD
blob: 5729e15f87f5e0d156ccdc687ff3538595a64cd5 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                           
                  
            
        
                                    

                                            
                    
                 
                                               
                          
                                                                                                
                                    
                
 
         


                              
         
                                                               
                              


           
                                                               

                                                          

 
                                                                                                                                                                     
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-multidict
_pkgname=multidict
pkgver=4.7.1
pkgrel=0
pkgdesc="A multidict implementation"
url="https://github.com/aio-libs/multidict/"
arch="all"
license="Apache-2.0"
depends="python3"
makedepends="python3-dev py3-setuptools cython"
subpackages="$pkgname-dev"
source="$_pkgname-$pkgver.tar.gz::https://github.com/aio-libs/multidict/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!strip"

check() {
	python3 setup.py check
}

build() {
	(cd multidict && find -name '*.pyx' -exec cython {} \;)
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -f "$pkgdir"/usr/lib/python3*/site-packages/*.c
	rm -f "$pkgdir"/usr/lib/python3*/site-packages/*.h
}

sha512sums="b25489dbc427ba31bc21741223de1aef29b55bfc85da9c6e5f82a20f6d1c2c873ad448b9132b701e722114dd4d92e766c09afd74e1d61fd0448e53cb6d7e4594  multidict-4.7.1.tar.gz"