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