python312Packages.pytest-kafka: init at 0.8.1

This commit is contained in:
Pol Dellaiera
2025-04-02 23:22:33 +02:00
parent 658620f2f3
commit f280136abd
2 changed files with 44 additions and 0 deletions
@@ -0,0 +1,42 @@
{
lib,
buildPythonPackage,
fetchFromGitLab,
setuptools,
kafka-python-ng,
port-for,
pytest,
}:
buildPythonPackage rec {
pname = "pytest-kafka";
version = "0.8.1";
pyproject = true;
src = fetchFromGitLab {
owner = "karolinepauls";
repo = "pytest-kafka";
tag = "v${version}";
hash = "sha256-OR8SpNswbPOVtAcFuZgrZJR5K6wPb1TS5leybKWr3zY=";
};
build-system = [ setuptools ];
dependencies = [
kafka-python-ng
port-for
pytest
];
pythonImportsCheck = [ "pytest_kafka" ];
# Tests depends on a kafka server running
doCheck = false;
meta = {
description = "Pytest fixture factories for Zookeeper, Kafka server and Kafka consumer";
homepage = "https://gitlab.com/karolinepauls/pytest-kafka";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ drupol ];
};
}
+2
View File
@@ -13543,6 +13543,8 @@ self: super: with self; {
pytest-jupyter = callPackage ../development/python-modules/pytest-jupyter { };
pytest-kafka = callPackage ../development/python-modules/pytest-kafka { };
pytest-lazy-fixture = callPackage ../development/python-modules/pytest-lazy-fixture { };
pytest-lazy-fixtures = callPackage ../development/python-modules/pytest-lazy-fixtures { };