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