aboutsummaryrefslogtreecommitdiffstats
path: root/community/pytest/APKBUILD
blob: fb4bebf7a6c3b2a19c824a9fa3badae9bf2f5c1e (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
41
42
43
44
45
46
47
48
49
50
51
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=pytest
_pkgname=pytest
pkgver=2.9.2
pkgrel=0
pkgdesc="A python test library"
url="http://pytest.org"
arch="noarch"
license="MIT"
depends=""
depends_dev=""
makedepends="python2-dev py-setuptools python3-dev"
install=""
subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

builddir="$srcdir"/$_pkgname-$pkgver

build() {
	cd "$builddir"
	python2 setup.py build || return 1
	python3 setup.py build || return 1	
}

package() {
	mkdir -p "$pkgdir"
}

_py() {
	local python=$1
	pkgdesc="$pkgdesc - $python"
	install_if="$pkgname=$pkgver-r$pkgrel $python" 	
	cd "$builddir"
	$python setup.py install --prefix=/usr --root="$subpkgdir"
}

_py2() {
	_py python2
	replaces="$pkgname"
}

_py3() {
	_py python3
}



md5sums="b65c2944dfaa0efb62c0239afb424f5b  pytest-2.9.2.tar.gz"
sha256sums="12c18abb9a09a5b2802dba75c7a2d7d6c8c0f1258abd8243e7688415d87ad1d8  pytest-2.9.2.tar.gz"
sha512sums="54a29933b6964ac0ca39035428cc2a2dd740a47728f8dda08828b962da3fa0878aeb5afc6d938c0171957e643c1453f1a8ca84117fc1bf86885b0e71ff80b5ad  pytest-2.9.2.tar.gz"