# Maintainer: Andy Postnikov pkgname=py3-pytest-mock _pkgname=pytest-mock pkgver=1.13.0 pkgrel=0 pkgdesc="Thin-wrapper around the mock package for easier use with py.test" options="!check" # Fails 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() { py.test-3 } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="11ca6379a32489fc9e18cdbc40ebc1f59fb1284fb3a8c39a4d98435d0f3b3e1630d13243dd79e2d3f468a3296b3931bc810da2095a0a9c29150010d9e1a44ed8 pytest-mock-1.13.0.tar.gz"