{ lib , stdenv , buildPythonPackage , fetchFromGitHub , pytest-asyncio , pytestCheckHook , pythonOlder }: buildPythonPackage rec { pname = "asyncio-dgram"; version = "2.1.1"; format = "setuptools"; disabled = pythonOlder "3.5"; src = fetchFromGitHub { owner = "jsbronder"; repo = pname; rev = "v${version}"; sha256 = "sha256-3K9VpX6JWCgz+Lx+5ZKqXG53B/uJCtI0x4pHy2pJdZg="; }; checkInputs = [ pytest-asyncio pytestCheckHook ]; # OSError: AF_UNIX path too long doCheck = !stdenv.isDarwin; disabledTests = [ "test_protocol_pause_resume" ]; pythonImportsCheck = [ "asyncio_dgram" ]; meta = with lib; { description = "Python support for higher level Datagram"; homepage = "https://github.com/jsbronder/asyncio-dgram"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; }; }