summaryrefslogblamecommitdiff
path: root/user/py3-virtualenv/APKBUILD
blob: bd609fdf213719aa375fd56af4b9e7d061ba8c5b (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.2
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="63467cd2e577d0d56b5fb3529d9fb12a64f08f756a5f1310487f0d64da8452c4743872c6b620984e0877e0a98b3080efc6bb8c58cc64c4f120da8e67e91044cc  py3-virtualenv-16.7.2.tar.gz
22f05b9c3d35339a28f50f7a01d81df082a00609712a5c38b92fe5d5c98ea077ad76c7d5a5072968105622d06e40897a34878133a4b5fd895a62d1e0d9a8928e  python3-provides.patch
f5e2a5036c7dfa124b71914981c46955466cb718392a90a4d8536dde4c153eb9cf3a8539c5cf870bb820b6e518c8b781025b825e11924ea4533890fa31e5a951  python3.patch
a5545b1dd3b0465233b983fd90cdfbd4514350e32a7d312107b9cfa83c8755f961bd483796a48697c9938fd44a60171c4368aa3f4b2760be8d2d8e053f719529  tests.patch"