1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isPy27 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "piccata"; 10 version = "2.0.0"; 11 12 disabled = isPy27; 13 14 src = fetchFromGitHub { 15 owner = "NordicSemiconductor"; 16 repo = pname; 17 rev = version; 18 sha256 = "0pn842jcf2czjks5dphivgp1s7wiifqiv93s0a89h0wxafd6pbsr"; 19 }; 20 21 checkInputs = [ 22 pytestCheckHook 23 ]; 24 25 disabledTests = [ 26 # No communication possible in the sandbox 27 "test_client_server_communication" 28 ]; 29 30 pythonImportsCheck = [ 31 "piccata" 32 ]; 33 34 meta = with lib; { 35 description = "Simple CoAP (RFC7252) toolkit"; 36 homepage = "https://github.com/NordicSemiconductor/piccata"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ gebner ]; 39 }; 40}