stripe-cli: 1.23.3 -> 1.23.5 (#375724)
[NixPkgs.git] / pkgs / development / python-modules / kafka-python-ng / default.nix
blobaec5ffe216f77560d8ef3b154ecbe1433b5b979f
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   fetchFromGitHub,
6   setuptools-scm,
7   crc32c,
8   lz4,
9   python-snappy,
10   zstandard,
11   botocore,
12   pytest-mock,
13   pytestCheckHook,
14   xxhash,
17 buildPythonPackage rec {
18   version = "2.2.3";
19   pname = "kafka-python-ng";
20   pyproject = true;
22   disabled = pythonOlder "3.8";
24   src = fetchFromGitHub {
25     owner = "wbarnha";
26     repo = "kafka-python-ng";
27     tag = "v${version}";
28     hash = "sha256-a2RFiBRh3S2YQBekpwEK74ow8bGlgWCGqSf2vcgYPYk=";
29   };
31   build-system = [ setuptools-scm ];
33   optional-dependencies = {
34     crc32c = [ crc32c ];
35     lz4 = [ lz4 ];
36     snappy = [ python-snappy ];
37     zstd = [ zstandard ];
38     boto = [ botocore ];
39   };
41   pythonImportsCheck = [ "kafka" ];
43   nativeCheckInputs = [
44     pytest-mock
45     pytestCheckHook
46     xxhash
47   ] ++ lib.flatten (builtins.attrValues optional-dependencies);
49   meta = {
50     changelog = "https://github.com/wbarnha/kafka-python-ng/releases/tag/v${version}";
51     description = "Pure Python client for Apache Kafka";
52     homepage = "https://github.com/wbarnha/kafka-python-ng";
53     license = lib.licenses.asl20;
54     maintainers = with lib.maintainers; [ dotlambda ];
55   };