# Maintainer: Andy Postnikov pkgname=py3-pytest-mock _pkgname=pytest-mock pkgver=1.10.4 pkgrel=0 pkgdesc="Thin-wrapper around the mock package for easier use with py.test" url="https://github.com/pytest-dev/pytest-mock" arch="noarch" license="MIT" depends="py3-pytest" makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces="pytest-mock" # Backwards compatibility provides="pytest-mock=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { python3 setup.py test } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="855ed6d2de6fb88bdc476b36b70373126859194cd01fd6b8700e2d42ccfb5b309c6b5d20dabb1306648b37045c2dd150682c3204f06f7e5ba1435353b66445e9 pytest-mock-1.10.4.tar.gz"