depot/third_party/nixpkgs/pkgs/development/python-modules/piccata/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

38 lines
798 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
isPy27,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "piccata";
version = "2.0.2";
format = "setuptools";
disabled = isPy27;
src = fetchFromGitHub {
owner = "NordicSemiconductor";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-Vuhwt+esTkvyEIRVYaRGvNMTAXVWBBv/6lpaxN5RrBA=";
};
nativeCheckInputs = [ 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 ];
};
}