From f0b011e52b23130692d83ae76e881de997433ba3 Mon Sep 17 00:00:00 2001 From: Gerben Jan Dijkman Date: Tue, 13 Jun 2023 00:03:32 +0200 Subject: [PATCH] Added injector --- dev-python/injector/Manifest | 1 + dev-python/injector/injector-0.20.1.ebuild | 36 ++++++++++++++++++++++ dev-python/injector/metadata.xml | 15 +++++++++ 3 files changed, 52 insertions(+) create mode 100644 dev-python/injector/Manifest create mode 100644 dev-python/injector/injector-0.20.1.ebuild create mode 100644 dev-python/injector/metadata.xml diff --git a/dev-python/injector/Manifest b/dev-python/injector/Manifest new file mode 100644 index 0000000..e74a23d --- /dev/null +++ b/dev-python/injector/Manifest @@ -0,0 +1 @@ +DIST injector-0.20.1.tar.gz 50797 BLAKE2B 2c4e8e47c4e7c37bd5fde9cc652796b81558b7dbb37efa75fdee5530eaa620cd55ca981efe07a87e8da1ba682fec410e26d9c3c4c1112e4c2b0682366eb7d221 SHA512 a7f1ae5d37d4fa10291fa48ab3a0897f1e2df3f0dbc87275bfc25091b6b8fd811b91b148f661ecfe5e333826c707344249ceb3f923df801a2a31279dd579e6de diff --git a/dev-python/injector/injector-0.20.1.ebuild b/dev-python/injector/injector-0.20.1.ebuild new file mode 100644 index 0000000..cee2c8a --- /dev/null +++ b/dev-python/injector/injector-0.20.1.ebuild @@ -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 +} diff --git a/dev-python/injector/metadata.xml b/dev-python/injector/metadata.xml new file mode 100644 index 0000000..e849cd2 --- /dev/null +++ b/dev-python/injector/metadata.xml @@ -0,0 +1,15 @@ + + + + + b@edevau.net + Andreas Billmeier + + + Rx + + dag@brattli.net + Dag Brattli + + +