aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/py3-hypothesis/APKBUILD
blob: 9f428cd7f747912b54ee4f0d9d44507b89f8bc7a (plain) (blame)
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
# Contributor: Jean-Louis Fuchs <ganwell@fangorn.ch>
# Maintainer: Jean-Louis Fuchs <ganwell@fangorn.ch>
pkgname=py3-hypothesis
pkgver=3.28.3
pkgrel=0
pkgdesc="Hypothesis is an advanced testing library for Python"
url="http://hypothesis.works/"
arch="noarch"
license="MPL"
depends="python3 py3-attrs"
makedepends="python3-dev py3-pytest"
source="py3-hypothesis-$pkgver.tar.gz::https://github.com/HypothesisWorks/hypothesis-python/archive/$pkgver.tar.gz"
builddir="$srcdir/hypothesis-python-$pkgver"

build() {
	cd "$builddir"
	python3 setup.py build
}

check() {
	PYTHONPATH="$builddir/src" pytest-3 check.py
}

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

sha512sums="402f116c215af4b57f9702b6af716f0b43a0dd8ee75dc609a0c430fb516dccbab57b438a58590259b25e1bbefaae05dfb28eec80242c599864bc352b98b269b5  py3-hypothesis-3.28.3.tar.gz"