1{ stdenv 2, lib 3, buildPythonPackage 4, fetchFromGitHub 5, pytestCheckHook 6, pytest-asyncio 7}: 8 9buildPythonPackage rec { 10 pname = "asyncio-dgram"; 11 version = "2.1.0"; 12 13 src = fetchFromGitHub { 14 owner = "jsbronder"; 15 repo = pname; 16 rev = "v${version}"; 17 sha256 = "1ibyphncb3d8vrs3yk8j6l1smmnibizx9k1vir2njhi09r57h9mx"; 18 }; 19 20 # OSError: AF_UNIX path too long 21 doCheck = !stdenv.isDarwin; 22 23 checkInputs = [ 24 pytestCheckHook 25 pytest-asyncio 26 ]; 27 28 disabledTests = [ "test_protocol_pause_resume" ]; 29 30 pythonImportsCheck = [ "asyncio_dgram" ]; 31 32 meta = with lib; { 33 description = "Python support for higher level Datagram"; 34 homepage = "https://github.com/jsbronder/asyncio-dgram"; 35 license = with licenses; [ mit ]; 36 maintainers = with maintainers; [ fab ]; 37 }; 38}