Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.6 kB · 75 lines
Nix
at gcc-offload
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576{ lib, stdenv, aiohttp, buildPythonPackage, ed25519, fetchFromGitHub, nats-server, nkeys, pytestCheckHook, pythonOlder, setuptools, uvloop,}:
buildPythonPackage rec { pname = "nats-py"; version = "2.9.0"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "nats-io"; repo = "nats.py"; rev = "refs/tags/v${version}"; hash = "sha256-r94dDXPpkLS1PsB9L4qlDw15tPa2vpxOS52eqJk2dNU="; };
build-system = [ setuptools ];
dependencies = [ ed25519 ];
optional-dependencies = { aiohttp = [ aiohttp ]; nkeys = [ nkeys ]; # fast_parse = [ # fast-mail-parser # ]; };
nativeCheckInputs = [ nats-server pytestCheckHook uvloop ];
disabledTests = [ # AssertionError "test_fetch_n" "test_kv_simple" "test_pull_subscribe_limits" "test_stream_management" "test_subscribe_no_echo" # Tests fail on hydra, often Time-out "test_subscribe_iterate_next_msg" "test_ordered_consumer_larger_streams" "test_object_file_basics" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ "test_subscribe_iterate_next_msg" "test_buf_size_force_flush_timeout" ];
pythonImportsCheck = [ "nats" ];
meta = with lib; { description = "Python client for NATS.io"; homepage = "https://github.com/nats-io/nats.py"; changelog = "https://github.com/nats-io/nats.py/releases/tag/v${version}"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ fab ]; };}