# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-pytest pkgver=4.5.0 pkgrel=3 pkgdesc="A python test library" url="https://docs.pytest.org/en/latest/" arch="noarch" license="MIT" depends="py3-atomicwrites py3-py py3-six py3-attrs py3-more-itertools py3-pluggy py3-wcwidth py3-setuptools" source="https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz" builddir="$srcdir/pytest-$pkgver" replaces="pytest" # Backwards compatibility provides="pytest=$pkgver-r$pkgrel" # Backwards compatibility build() { cd "$builddir" python3 setup.py build } check() { cd "$builddir" python3 setup.py check } package() { cd "$builddir" mkdir -p "$pkgdir"/usr/bin local name; for name in py.test pytest; do ln -s $name-3 "$pkgdir"/usr/bin/$name done python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="cbffc6216f83491b1de241058315c116697bfaa5206b5f558192a7f861d43dd036d30d0d689bedae7bdee4f0258dd19ef5827c356e11863dd596a5fabe8249fc pytest-4.5.0.tar.gz"