evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / kafka-python-ng / default.nix
blob79d253cacc8ed47c1d99b9789a8cffb4f8caa621
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.2";
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     rev = "refs/tags/v${version}";
28     hash = "sha256-ELJvcj91MQ2RTjT1dwgnTGSSG5lP6B6/45dFgtNY2Cc=";
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   };