commit: 551cd9c4d1ba7cf9d978f308f7220fcc940fe309 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> AuthorDate: Thu Mar 17 13:10:52 2022 +0000 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> CommitDate: Thu Mar 17 13:10:52 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=551cd9c4
dev-python/confluent-kafka: add missing test dependency Closes: https://bugs.gentoo.org/835483 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> .../confluent-kafka/confluent-kafka-1.8.2.ebuild | 24 +++++++++++++--------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/dev-python/confluent-kafka/confluent-kafka-1.8.2.ebuild b/dev-python/confluent-kafka/confluent-kafka-1.8.2.ebuild index 895caba61..29c388bfc 100644 --- a/dev-python/confluent-kafka/confluent-kafka-1.8.2.ebuild +++ b/dev-python/confluent-kafka/confluent-kafka-1.8.2.ebuild @@ -6,7 +6,7 @@ EAPI=8 MYPN="${PN}-python" PYTHON_COMPAT=( python3_{8,9} ) -inherit distutils-r1 +inherit distutils-r1 optfeature DESCRIPTION="Confluent's Kafka Python Client" HOMEPAGE=" @@ -20,20 +20,24 @@ LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64" -RDEPEND=" - dev-libs/librdkafka - >=dev-python/fastavro-1.0[${PYTHON_USEDEP}] - >=dev-python/avro-1.10.0[${PYTHON_USEDEP}] - dev-python/requests[${PYTHON_USEDEP}] - dev-python/pyrsistent[${PYTHON_USEDEP}] - dev-python/jsonschema[${PYTHON_USEDEP}] - dev-python/protobuf-python[${PYTHON_USEDEP}] -" +RDEPEND="dev-libs/librdkafka" DEPEND="${RDEPEND}" BDEPEND=" test? ( + >=dev-python/fastavro-1.0[${PYTHON_USEDEP}] + >=dev-python/avro-1.10.0[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] dev-python/pytest-timeout[${PYTHON_USEDEP}] + dev-python/requests-mock[${PYTHON_USEDEP}] + >=dev-python/trivup-0.8.3[${PYTHON_USEDEP}] ) " distutils_enable_tests pytest + +pkg_postinst() { + optfeature "avro support" dev-python/fastavro dev-python/avro dev-python/requests + optfeature "json support" dev-python/jsonschema dev-python/pyrsistent dev-python/requests + optfeature "protobuf support" dev-python/protobuf-python dev-python/requests + optfeature "schema-registry support" dev-python/requests +}