# Contributor: Dmitry Romanenko # Maintainer: Dmitry Romanenko pkgname=py-execnet _pkgname=execnet pkgver=1.7.0 pkgrel=0 pkgdesc="execnet: rapid multi-Python deployment" url="https://github.com/pytest-dev/execnet" arch="noarch" license="MIT" depends="py-apipkg" # tests for py-gevent are broken, jython is missing in repo, eventlet is part # of testing checkdepends="pytest py-py" makedepends="py3-setuptools py-setuptools py-setuptools_scm" subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver build() { python2 setup.py build python3 setup.py build } check() { mv $builddir/doc/example/conftest.py $builddir python2 -m pytest python3 -m pytest } package() { mkdir -p "$pkgdir" } _py2() { replaces="$pkgname" _py python2 } _py3() { _py python3 } _py() { local python="$1" pkgdesc="$pkgdesc (for $python)" depends="$depends $python" install_if="$pkgname=$pkgver-r$pkgrel $python" cd "$builddir" $python setup.py install --prefix=/usr --root="$subpkgdir" } sha512sums="5cc77f534d6a4966250a8494c53231dea938044268d3f81efd77ed20f5548ac167aa20e1e54fc3307828ba2937f5b1af44d2e8412110998b6016125fcf984c56 execnet-1.7.0.tar.gz"