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

             

                            
                                                                    


                                                                                         
                                    
 

                                                                 
 



                      
         
                              

 



                                                            
           
                                                               

 



                                                                                                                                                                             
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-httplib2
_pkgname=httplib2
pkgver=0.19.0
pkgrel=1
pkgdesc="Python3 HTTP client library"
url="https://github.com/httplib2/httplib2"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-cov py3-pytest-timeout py3-mock"
source="https://files.pythonhosted.org/packages/source/h/httplib2/httplib2-$pkgver.tar.gz
	fix-test-inject-space-after-bpo-43882.patch
	"
builddir="$srcdir/$_pkgname-$pkgver"

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

# secfixes:
#   0.19.0-r0:
#     - CVE-2021-21240

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" python3 -m pytest tests/
}

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

sha512sums="
9193a0e8e9a58a3f0e9b27fdf827932482a47b88af297af6e5f004164ca0b72feeff513b8191bf7c48d6714070a1390ae54eb8a2c6840f54f2580889c7837c7f  httplib2-0.19.0.tar.gz
88a9106f1005b2a2234c4fe20c3e271122732d25dce08e9f4f355701854fbfb176ad638a4cfee807bbc4cb063bd6913775a0d6b6c6724cb7948d430f985ae4c7  fix-test-inject-space-after-bpo-43882.patch
"