1{
2 buildPythonPackage,
3 cachetools,
4 fetchFromGitHub,
5 isPy27,
6 lib,
7}:
8
9buildPythonPackage rec {
10 pname = "coapthon3";
11 version = "1.0.2";
12 format = "setuptools";
13 disabled = isPy27;
14
15 src = fetchFromGitHub {
16 owner = "Tanganelli";
17 repo = "CoAPthon3";
18 rev = version;
19 hash = "sha256-9QApoPUu3XFZY/lgjAsf5r2StFiRtUd1UXWDrzYUh6w=";
20 };
21
22 propagatedBuildInputs = [ cachetools ];
23
24 # tests take in the order of 10 minutes to execute and sometimes hang forever on tear-down
25 doCheck = false;
26 pythonImportsCheck = [ "coapthon" ];
27
28 meta = with lib; {
29 inherit (src.meta) homepage;
30 description = "Python3 library to the CoAP protocol compliant with the RFC";
31 license = licenses.mit;
32 maintainers = with maintainers; [ urbas ];
33 };
34}