Added injector

This commit is contained in:
Gerben Jan Dijkman 2023-06-13 00:03:32 +02:00
parent 8b3e92cb50
commit f0b011e52b
3 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1 @@
DIST injector-0.20.1.tar.gz 50797 BLAKE2B 2c4e8e47c4e7c37bd5fde9cc652796b81558b7dbb37efa75fdee5530eaa620cd55ca981efe07a87e8da1ba682fec410e26d9c3c4c1112e4c2b0682366eb7d221 SHA512 a7f1ae5d37d4fa10291fa48ab3a0897f1e2df3f0dbc87275bfc25091b6b8fd811b91b148f661ecfe5e333826c707344249ceb3f923df801a2a31279dd579e6de

View File

@ -0,0 +1,36 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1 virtualx
DESCRIPTION="Injector - Python dependency injection framework, inspired by Guice"
HOMEPAGE="http://reactivex.io https://pypi.org/project/injector/"
SRC_URI="https://files.pythonhosted.org/packages/fe/c8/e8cf3e022453c7d120d323864ae6e278b287bdcdad6fdde980a3fdc9e443/injector-0.20.1.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
DOCS=""
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
dev-python/pytest[${PYTHON_USEDEP}]
)"
python_test() {
py.test -v -v || die
}
distutils_enable_tests pytest
src_test() {
virtx distutils-r1_src_test
}

View File

@ -0,0 +1,15 @@
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>b@edevau.net</email>
<name>Andreas Billmeier</name>
</maintainer>
<upstream>
<remote-id type="pypi">Rx</remote-id>
<maintainer status="unknown">
<email>dag@brattli.net</email>
<name>Dag Brattli</name>
</maintainer>
</upstream>
</pkgmetadata>