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