evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / nats-py / default.nix
blobffd604f6daec1b145d37af9316e1ee3196c94e3f
2   lib,
3   stdenv,
4   aiohttp,
5   buildPythonPackage,
6   ed25519,
7   fetchFromGitHub,
8   nats-server,
9   nkeys,
10   pytestCheckHook,
11   pythonOlder,
12   setuptools,
13   uvloop,
16 buildPythonPackage rec {
17   pname = "nats-py";
18   version = "2.9.0";
19   pyproject = true;
21   disabled = pythonOlder "3.7";
23   src = fetchFromGitHub {
24     owner = "nats-io";
25     repo = "nats.py";
26     rev = "refs/tags/v${version}";
27     hash = "sha256-r94dDXPpkLS1PsB9L4qlDw15tPa2vpxOS52eqJk2dNU=";
28   };
30   build-system = [ setuptools ];
32   dependencies = [ ed25519 ];
34   optional-dependencies = {
35     aiohttp = [ aiohttp ];
36     nkeys = [ nkeys ];
37     # fast_parse = [
38     #   fast-mail-parser
39     # ];
40   };
42   nativeCheckInputs = [
43     nats-server
44     pytestCheckHook
45     uvloop
46   ];
48   disabledTests =
49     [
50       # AssertionError
51       "test_fetch_n"
52       "test_kv_simple"
53       "test_pull_subscribe_limits"
54       "test_stream_management"
55       "test_subscribe_no_echo"
56       # Tests fail on hydra, often Time-out
57       "test_subscribe_iterate_next_msg"
58       "test_ordered_consumer_larger_streams"
59       "test_object_file_basics"
60     ]
61     ++ lib.optionals stdenv.hostPlatform.isDarwin [
62       "test_subscribe_iterate_next_msg"
63       "test_buf_size_force_flush_timeout"
64     ];
66   pythonImportsCheck = [ "nats" ];
68   meta = with lib; {
69     description = "Python client for NATS.io";
70     homepage = "https://github.com/nats-io/nats.py";
71     changelog = "https://github.com/nats-io/nats.py/releases/tag/v${version}";
72     license = with licenses; [ asl20 ];
73     maintainers = with maintainers; [ fab ];
74   };