{ lib , buildPythonPackage , ed25519 , fetchFromGitHub , nats-server , pytestCheckHook , pythonOlder , uvloop }: buildPythonPackage rec { pname = "asyncio-nats-client"; version = "0.11.5"; disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "nats-io"; repo = "nats.py"; rev = "v${version}"; sha256 = "0zwiijaswmfdk71diqmdpb6nx54fmgi8hy0vwx2m3ihhsyjxj82h"; }; propagatedBuildInputs = [ ed25519 ]; checkInputs = [ nats-server pytestCheckHook uvloop ]; postPatch = '' substituteInPlace setup.cfg \ --replace "--cov=nats --cov-report html" "" ''; disabledTests = [ # RuntimeError: Event loop is closed "test_subscribe_no_echo" "test_reconnect_to_new_server_with_auth" "test_drain_connection" "test_discover_servers_on_first_connect" ]; pythonImportsCheck = [ "nats.aio" ]; meta = with lib; { description = "Python client for NATS.io"; homepage = "https://github.com/nats-io/nats.py"; license = with licenses; [ asl20 ]; maintainers = with maintainers; [ fab ]; }; }