aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pyhamcrest/APKBUILD
blob: 01b74d114d8fd9b0f09ea3158898b53dc5f4d8c7 (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.0
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="py3-hamcrest" # Backwards compatibility
provides="py3-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="32683422c92f27ffbdb081cfeb588a81bd299fd965e3fdd67a5aca2900e0a89da0fa217b22f4333511831921953519d75861b18fcb164d1ec6cacf13994df5e3  PyHamcrest-2.0.0.tar.gz"