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