mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 18:25:41 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
31 lines
909 B
Text
31 lines
909 B
Text
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
|
|
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
|
|
pkgname=py3-injector
|
|
pkgver=0.20.1
|
|
pkgrel=1
|
|
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 --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
a7f1ae5d37d4fa10291fa48ab3a0897f1e2df3f0dbc87275bfc25091b6b8fd811b91b148f661ecfe5e333826c707344249ceb3f923df801a2a31279dd579e6de injector-0.20.1.tar.gz
|
|
"
|