summaryrefslogtreecommitdiff
path: root/testing/py3-snapshottest/APKBUILD
blob: f94ef39589ea3c6dd0e84976fcef0e2975126da2 (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
38
39
40
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-snapshottest
pkgver=0.6.0
pkgrel=2
pkgdesc="Snapshot testing for pytest, unittest, Django, and Nose"
url="https://github.com/syrusakbary/snapshottest"
arch="noarch"
license="MIT"
depends="
	py3-fastdiff
	py3-termcolor
	python3
	"
makedepends="py3-setuptools"
checkdepends="
	py3-django
	py3-nose
	py3-pytest
	py3-pytest-cov
	py3-six
	"
source="https://pypi.python.org/packages/source/s/snapshottest/snapshottest-$pkgver.tar.gz"
builddir="$srcdir/snapshottest-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest --ignore tests/test_pytest.py
}

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

sha512sums="
0f39ec0b2255291d35bcc873b73b3802b427efd53b8d12ab373a76193dfe9d108534980f8081be38fadbf2392915e8e0d63547e5bf0479ea06d8d79cde4016ce  snapshottest-0.6.0.tar.gz
"