16 buildPythonPackage rec {
21 disabled = pythonOlder "3.7";
23 src = fetchFromGitHub {
26 rev = "refs/tags/v${version}";
27 hash = "sha256-5lvdt1JbOmdts0CYU00bSmv0LsMQsOe//yUgyevBULE=";
30 build-system = [ setuptools ];
32 dependencies = [ ed25519 ];
34 passthru.optional-dependencies = {
35 aiohttp = [ aiohttp ];
50 # AssertionError: assert 5 == 0
51 "test_pull_subscribe_limits"
53 "test_subscribe_no_echo"
54 "test_stream_management"
55 # Tests fail on hydra, often Time-out
56 "test_subscribe_iterate_next_msg"
57 "test_ordered_consumer_larger_streams"
58 "test_object_file_basics"
60 ++ lib.optionals stdenv.isDarwin [
61 "test_subscribe_iterate_next_msg"
62 "test_buf_size_force_flush_timeout"
65 pythonImportsCheck = [ "nats" ];
68 description = "Python client for NATS.io";
69 homepage = "https://github.com/nats-io/nats.py";
70 changelog = "https://github.com/nats-io/nats.py/releases/tag/v${version}";
71 license = with licenses; [ asl20 ];
72 maintainers = with maintainers; [ fab ];