depot/third_party/nixpkgs/pkgs/development/python-modules/piccata/default.nix
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

40 lines
780 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "piccata";
version = "2.0.2";
disabled = isPy27;
src = fetchFromGitHub {
owner = "NordicSemiconductor";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "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 ];
};
}