aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pyhamcrest/APKBUILD
blob: 2cc71d9402aeb24097bd11c25b8d9223f29f3b43 (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
32
33
34
35
36
37
# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-pyhamcrest
_pkgname=PyHamcrest
pkgver=2.0.1
pkgrel=0
pkgdesc="Hamcrest framework for matcher objects"
url="https://github.com/hamcrest/PyHamcrest"
arch="noarch"
license="BSD-3-Clause"
depends="py3-six"
makedepends="py3-setuptools"
checkdepends="py3-hypothesis py3-mock py3-pytest"
source="$_pkgname-$pkgver.tar.gz::https://github.com/hamcrest/PyHamcrest/archive/V$pkgver.tar.gz"
builddir="$srcdir/"$_pkgname-$pkgver

replaces="py-hamcrest" # Backwards compatibility
provides="py-hamcrest=$pkgver-r$pkgrel" # Backwards compatibility

prepare() {
	default_prepare
	rm -f pytest.ini
}

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="build/lib" py.test-3
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="29e85e83b1d7ed691f4fd9e21172149cd6bea702d5838208023641e68585b42a48106122574d6238b40cbb40601273e6202e6cf3a91b71f03d80f3dc1c72f94e  PyHamcrest-2.0.1.tar.gz"