# Contributor: Dmitry Romanenko # Maintainer: Dmitry Romanenko pkgname=pytest-forked _pkgname=${pkgname#py-} pkgver=1.0.1 pkgrel=0 pkgdesc="extracted --boxed from pytest-xdist to ensure backward compat" url="https://github.com/pytest-dev/pytest-forked" arch="noarch" license="MIT" depends="py-py pytest" checkdepends="py-six py-tox" makedepends="python2-dev python3-dev 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() { cd "$builddir" python2 setup.py build python3 setup.py build } check() { cd "$builddir" tox -e py27,py36 } 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="6fc56ce7fcbb76e5c92c912eb199b8d7af09f2fc3d4648ac7493fcdd1ba9df40fd87bd03a384d70ed015cd5d9f0e243a2c89811daabd5477f3355bbbdb2d7657 pytest-forked-1.0.1.tar.gz"