Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 isPy27, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "piccata"; 11 version = "2.0.2"; 12 format = "setuptools"; 13 14 disabled = isPy27; 15 16 src = fetchFromGitHub { 17 owner = "NordicSemiconductor"; 18 repo = pname; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-Vuhwt+esTkvyEIRVYaRGvNMTAXVWBBv/6lpaxN5RrBA="; 21 }; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 disabledTests = [ 26 # No communication possible in the sandbox 27 "test_client_server_communication" 28 ]; 29 30 pythonImportsCheck = [ "piccata" ]; 31 32 meta = with lib; { 33 description = "Simple CoAP (RFC7252) toolkit"; 34 homepage = "https://github.com/NordicSemiconductor/piccata"; 35 license = licenses.mit; 36 maintainers = with maintainers; [ gebner ]; 37 }; 38}