summaryrefslogblamecommitdiff
path: root/user/py3-virtualenv/APKBUILD
blob: 1697099f99be2bc6193f718cad20c84b2de91493 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                         
             
                                            
                                         
             
                     

                         
                                   
                                                                                                                    

                              

                                    
                              
                                                          

         
                                                       

           

                                                               
                                                                                                                                                                          

                                                                                                                                                        
# Contributor: Max Rees <maxcrees@me.com>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=py3-virtualenv
_pkgname=virtualenv
pkgver=16.7.5
pkgrel=0
pkgdesc="Virtual Python Environment builder"
url="https://pypi.org/project/virtualenv"
arch="noarch"
# Certified net clean
license="MIT"
depends="python3"
makedepends="python3-dev"
checkdepends="py3-pytest cmd:which"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/v/$_pkgname/$_pkgname-$pkgver.tar.gz
	python3-provides.patch
	python3.patch
	tests.patch"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
	sed -ie "s/env python$/env python3/" virtualenv.py
}

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

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

sha512sums="60b734f688eec1491fe5dcc3652d42f3e44df89d0809d3ab563c5dab1b5e340404894f34a08994a5ad4d8c0f7c8bb995d8211f9378906957d34031720bb3c390  py3-virtualenv-16.7.5.tar.gz
22f05b9c3d35339a28f50f7a01d81df082a00609712a5c38b92fe5d5c98ea077ad76c7d5a5072968105622d06e40897a34878133a4b5fd895a62d1e0d9a8928e  python3-provides.patch
f5e2a5036c7dfa124b71914981c46955466cb718392a90a4d8536dde4c153eb9cf3a8539c5cf870bb820b6e518c8b781025b825e11924ea4533890fa31e5a951  python3.patch
a5545b1dd3b0465233b983fd90cdfbd4514350e32a7d312107b9cfa83c8755f961bd483796a48697c9938fd44a60171c4368aa3f4b2760be8d2d8e053f719529  tests.patch"