# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-pytest pkgver=5.3.0 pkgrel=0 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 py3-packaging" 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() { python3 setup.py build } check() { python3 setup.py check } package() { 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="285d0b4f6b87b141d6d5dac368dc46eb80dd025d7ed4ad0db937fcc76efc1f8cf251ca9b0786ab1bdadd89c07ad8ddd74f2b3496f97326e9d7fccfd004b98aff pytest-5.3.0.tar.gz"