summaryrefslogtreecommitdiff
path: root/community/py3-apipkg/APKBUILD
blob: 66149a0ae6ce84bafc1e61872d1c38c6b2860a05 (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
# Contributor: Dmitry Romanenko <dmitry@romanenko.in>
# Maintainer: Dmitry Romanenko <dmitry@romanenko.in>
pkgname=py3-apipkg
_pkgname=apipkg
pkgver=2.1.0
pkgrel=1
pkgdesc="apipkg: namespace control and lazy-import mechanism"
url="https://github.com/pytest-dev/apipkg"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools py3-setuptools_scm"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

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

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$builddir/build/lib/:$PYTHONPATH" python3 -m pytest
}

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

sha512sums="
2281ffc999feddcc6073edcbb8512ded4240aaa1b472a81bbbd942da1601319ab6038387e08a2a14c962995ce94bab2e99f5a7747f8744e6af8d97abd076203b  apipkg-2.1.0.tar.gz
"