# Contributor: Max Rees # Maintainer: Max Rees pkgname=py3-virtualenv _pkgname=virtualenv pkgver=16.0.0 pkgrel=0 pkgdesc="Virtual Python Environment builder" url="https://pypi.org/project/virtualenv" arch="noarch" license="MIT" depends="python3" makedepends="python3-dev" checkdepends="py3-pytest py3-setuptools cmd:which" source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz test-python3.patch" builddir="$srcdir/$_pkgname-$pkgver" build() { cd "$builddir" python3 setup.py build sed -ie "s/env python$/env python3/" virtualenv.py } check() { cd "$builddir" python3 setup.py test cd tests ./test_activate.sh } package() { cd "$builddir" python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="43bc37f1da1b65e9a2df5a8813a801f27f5783b7211219d441d1c2132789917df42fdc0aba1d5ec51e3d6f7583af9474d59c1f532d8880c8c325ccc96e73b3df py3-virtualenv-16.0.0.tar.gz 8e022416eb10289fd5215f3810203eefb450ce2fca7bdc581b5cd1892f41f34815beec35fc6c744991536c1f2edebd58ab934a4414c6fe2ae6387aea02787ef8 test-python3.patch"