From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E7ABF158041 for ; Wed, 28 Feb 2024 16:48:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6F70DE2A3D; Wed, 28 Feb 2024 16:48:55 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 52619E2A3D for ; Wed, 28 Feb 2024 16:48:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5937634300F for ; Wed, 28 Feb 2024 16:48:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6C6C614E6 for ; Wed, 28 Feb 2024 16:48:52 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1709138926.140b52990dbf3d95249185b9bac1ab23ba99904a.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/kafka-python/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/kafka-python/kafka-python-2.0.2-r2.ebuild X-VCS-Directories: dev-python/kafka-python/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 140b52990dbf3d95249185b9bac1ab23ba99904a X-VCS-Branch: master Date: Wed, 28 Feb 2024 16:48:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fb27c7b4-2583-4419-a71b-8d12542cd9f3 X-Archives-Hash: a924faae7067d7def8033d46709cbdf9 commit: 140b52990dbf3d95249185b9bac1ab23ba99904a Author: Michał Górny gentoo org> AuthorDate: Wed Feb 28 15:03:43 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Wed Feb 28 16:48:46 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=140b5299 dev-python/kafka-python: Add dev-python/crc32c Signed-off-by: Michał Górny gentoo.org> .../kafka-python/kafka-python-2.0.2-r2.ebuild | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/dev-python/kafka-python/kafka-python-2.0.2-r2.ebuild b/dev-python/kafka-python/kafka-python-2.0.2-r2.ebuild new file mode 100644 index 000000000000..5160f55b74f9 --- /dev/null +++ b/dev-python/kafka-python/kafka-python-2.0.2-r2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..11} ) + +inherit distutils-r1 optfeature + +DESCRIPTION="Kafka protocol support in Python" +HOMEPAGE=" + https://github.com/dpkp/kafka-python/ + https://pypi.org/project/kafka-python/ +" +SRC_URI=" + https://github.com/dpkp/kafka-python/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/xxhash[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/crc32c[${PYTHON_USEDEP}] + dev-python/lz4[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/python-snappy[${PYTHON_USEDEP}] + dev-python/zstandard[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/${P}-py311-test-fixes.patch" +) + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # Needs kafka server running + test/test_consumer_integration.py::test_kafka_consumer_offsets_for_time_old + # Rounding problem + 'test/record/test_records.py::test_memory_records_builder[1-2]' +) + +pkg_postinst() { + optfeature "LZ4 compression/decompression support" dev-python/lz4 + optfeature "Snappy compression support" dev-python/python-snappy + optfeature "ZSTD compression/decompression support" dev-python/zstandard +}