620eecebfb
GitOrigin-RevId: 2deb07f3ac4eeb5de1c12c4ba2911a2eb1f6ed61
40 lines
760 B
Nix
40 lines
760 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, isPy27
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "piccata";
|
|
version = "2.0.0";
|
|
|
|
disabled = isPy27;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "NordicSemiconductor";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0pn842jcf2czjks5dphivgp1s7wiifqiv93s0a89h0wxafd6pbsr";
|
|
};
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# No communication possible in the sandbox
|
|
"test_client_server_communication"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"piccata"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Simple CoAP (RFC7252) toolkit";
|
|
homepage = "https://github.com/NordicSemiconductor/piccata";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ gebner ];
|
|
};
|
|
}
|