aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-injector/APKBUILD
blob: 87f166310c07181620361d4141bfe687ab3f0564 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=py3-injector
pkgver=0.18.4
pkgrel=0
pkgdesc="Python dependency injection framework, inspired by Guice"
url="https://github.com/alecthomas/injector"
arch="noarch"
license="BSD-3-Clause"
depends="python3 py3-typing-extensions"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
options="!check" # Tests apparently aren't in pypi tarballs?
source="https://files.pythonhosted.org/packages/source/i/injector/injector-$pkgver.tar.gz"
builddir="$srcdir/injector-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$(echo $PWD/build/lib.*)" pytest-3
}

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

sha512sums="3afc5e69ade4d60f6f60c81b1067428852a39767a14c779436ed9137e922c47f0818b599afef0b13a1dd6fe3cd95a16fb85963e7fc5c3b6f0ae84ec54f219aca  injector-0.18.4.tar.gz"