1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pygments 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "aiocoap"; 11 version = "0.4.4"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "chrysn"; 18 repo = pname; 19 rev = version; 20 sha256 = "sha256-m/tU1qf+CB9/2eoXktpBSgwjj8lMuMQ/WGYL6HhMNxA="; 21 }; 22 23 propagatedBuildInputs = [ 24 pygments 25 ]; 26 27 checkInputs = [ 28 pytestCheckHook 29 ]; 30 31 disabledTestPaths = [ 32 # Don't test the plugins 33 "tests/test_tls.py" 34 "tests/test_reverseproxy.py" 35 "tests/test_oscore_plugtest.py" 36 ]; 37 38 disabledTests = [ 39 # Communication is not properly mocked 40 "test_uri_parser" 41 ]; 42 43 pythonImportsCheck = [ 44 "aiocoap" 45 ]; 46 47 meta = with lib; { 48 description = "Python CoAP library"; 49 homepage = "https://aiocoap.readthedocs.io/"; 50 license = with licenses; [ mit ]; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}