APKBUILD 896 Bytes
Newer Older
1
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
prspkt's avatar
prspkt committed
2 3
pkgname=py3-pytest-mock
_pkgname=pytest-mock
4
pkgver=1.10.0
5
pkgrel=1
6 7 8 9
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"
prspkt's avatar
prspkt committed
10 11
depends="py3-pytest"
makedepends="py3-setuptools"
12 13 14
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

prspkt's avatar
prspkt committed
15 16 17
replaces="pytest-mock" # Backwards compatibility
provides="pytest-mock=$pkgver-r$pkgrel" # Backwards compatibility

18 19 20 21 22 23 24 25 26
build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
prspkt's avatar
prspkt committed
27
	python3 setup.py install --prefix=/usr --root="$pkgdir"
28 29 30
}

sha512sums="b8afba13da3e598b6493459298e395c0ecc06538733916659191bd5c5c22f40b0e296853ad940c16a6d492fcf46b2daf490ee589661d391e2c7cd1deb84da756  pytest-mock-1.10.0.tar.gz"