aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-pytest/APKBUILD
blob: 6966ea7b9ad2bb2c7c579a80804a07b97c852d1f (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-pytest
pkgver=5.3.2
pkgrel=0
pkgdesc="A python test library"
url="https://docs.pytest.org/en/latest/"
arch="noarch"
license="MIT"
depends="py3-atomicwrites py3-py py3-six py3-attrs py3-more-itertools py3-pluggy py3-wcwidth
	py3-setuptools py3-packaging"
source="https://files.pythonhosted.org/packages/source/p/pytest/pytest-$pkgver.tar.gz"
builddir="$srcdir/pytest-$pkgver"

replaces="pytest" # Backwards compatibility
provides="pytest=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	mkdir -p "$pkgdir"/usr/bin

	local name; for name in py.test pytest; do
		ln -s $name-3 "$pkgdir"/usr/bin/$name
	done

	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="2ab39973848d2d4693edd1dbd7ab2798b574026c9277bddd4a18e57aec65b3d93de201e87f58eb26030183b5c71818e6e56bcc1cda8c50892546cb1c04d6984a  pytest-5.3.2.tar.gz"