Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / aiokafka / default.nix
blob45f79d81948c5a4e2257e56ebd59419aea9438ce
1 { lib
2 , async-timeout
3 , buildPythonPackage
4 , cython
5 , fetchFromGitHub
6 , gssapi
7 , kafka-python
8 , lz4
9 , packaging
10 , python-snappy
11 , pythonOlder
12 , zlib
13 , zstandard
16 buildPythonPackage rec {
17   pname = "aiokafka";
18   version = "0.10.0";
19   format = "setuptools";
21   disabled = pythonOlder "3.7";
23   src = fetchFromGitHub {
24     owner = "aio-libs";
25     repo = pname;
26     rev = "refs/tags/v${version}";
27     hash = "sha256-G9Q77nWUUW+hG/wm9z/S8gea4U1wHZdj7WdK2LsKBos=";
28   };
30   nativeBuildInputs = [
31     cython
32   ];
34   buildInputs = [
35     zlib
36   ];
38   propagatedBuildInputs = [
39     async-timeout
40     kafka-python
41     packaging
42   ];
44   passthru.optional-dependencies = {
45     snappy = [
46       python-snappy
47     ];
48     lz4 = [
49       lz4
50     ];
51     zstd = [
52       zstandard
53     ];
54     gssapi = [
55       gssapi
56     ];
57   };
59   # Checks require running Kafka server
60   doCheck = false;
62   pythonImportsCheck = [
63     "aiokafka"
64   ];
66   meta = with lib; {
67     description = "Kafka integration with asyncio";
68     homepage = "https://aiokafka.readthedocs.org";
69     changelog = "https://github.com/aio-libs/aiokafka/releases/tag/v${version}";
70     license = licenses.asl20;
71     maintainers = with maintainers; [ ];
72   };