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