aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-sybil/APKBUILD
blob: 8dd73a031bb8cfde464e14c13c06f5df85f5769c (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
30
31
32
33
34
35
36
37
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-sybil
pkgver=2.0.1
pkgrel=2
pkgdesc="Automated testing for the examples in your documentation"
url="https://github.com/cjw296/sybil"
arch="noarch"
license="MIT"
depends="python3"
makedepends="
	py3-nose
	py3-setuptools
	py3-sphinx
	py3-wheel
	"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/s/sybil/sybil-$pkgver.tar.gz
	fix-tests-for-python-3-10.patch"
builddir="$srcdir/sybil-$pkgver"

build() {
	python3 setup.py build
}

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

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

sha512sums="
4f3be7686c1acf6812623a756fa79b41e3fbe5d4c3b4c7cf5dfe39fbe56806b4ef3acd24e25968ab9119b2c65ad5c30eabe32f1a93fb62ba8d3893ef123e69f0  sybil-2.0.1.tar.gz
1dc373b048828e37a73dd6130b4b70d06f99eb670a3d2da6c63e917f32f87fe1c5a20fa7f495e6c579b6c0057073d41d399d67e05bc9abd37f338e1636e05b84  fix-tests-for-python-3-10.patch
"