aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pytest-mock/APKBUILD
blob: 5ce867692bb236d5a98e46c73062a3c14adaae14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=py3-pytest-mock
_pkgname=pytest-mock
pkgver=1.11.2
pkgrel=1
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="6dc927ce35001d088bddd9d79e024141b9e8163033b07af14b1f63330ef8b93dbf88649702f8fcc4f6ad314212fa5cbd39486b539811ec918450b3f7a716f96c  pytest-mock-1.11.2.tar.gz"