mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 00:08:58 -04:00
43 lines
788 B
Bash
43 lines
788 B
Bash
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
PYTHON_COMPAT=( python3_{9..12} )
|
|
|
|
inherit distutils-r1
|
|
|
|
DESCRIPTION="Python dependency injection framework, inspired by Guice"
|
|
HOMEPAGE="https://github.com/python-injector/injector"
|
|
SRC_URI="https://github.com/python-injector/${PN}/archive/refs/tags/${PV}.tar.gz"
|
|
|
|
SLOT="0"
|
|
LICENSE="BSD"
|
|
KEYWORDS="~amd64 ~x86 ~x86-linux"
|
|
IUSE="doc test"
|
|
|
|
RDEPEND="
|
|
test? (
|
|
dev-python/pytest
|
|
dev-python/hypothesis
|
|
)
|
|
"
|
|
DEPEND="${RDEPEND}
|
|
doc? ( dev-python/sphinx )
|
|
"
|
|
|
|
|
|
python_compile_all() {
|
|
use doc && emake -C docs
|
|
}
|
|
|
|
python_test() {
|
|
esetup.py test
|
|
}
|
|
|
|
python_install_all() {
|
|
use doc && local HTML_DOCS=( docs/. )
|
|
distutils-r1_python_install_all
|
|
}
|