aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-flexmock/APKBUILD
blob: 1b5678064d8956593b84e4feb3e7780d99e885a2 (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
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-flexmock
_pkgname=flexmock
pkgver=0.10.4
pkgrel=0
pkgdesc="A collection of helpers and mock objects for Python"
url="https://github.com/bkabrda/flexmock"
arch="noarch"
license="BSD-2-Clause"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="$_pkgname-$pkgver.tar.gz::https://github.com/bkabrda/flexmock/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$builddir"/build/lib pytest
}

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

sha512sums="96d3af9625b1dbd987b291c7ed26a77476f54fe4548d16ad70adeefc0093f51a3b47d8b3fb4339611dfadd8b2d55a1bc734e70bc093683192f1f351badf08553  flexmock-0.10.4.tar.gz"