mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
0215034f25
when they already rely on SRI hashes.
41 lines
778 B
Nix
41 lines
778 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}";
|
|
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 ];
|
|
};
|
|
}
|