Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 27 lines 735 B view raw
1{ buildPythonPackage, cachetools, fetchFromGitHub, isPy27, lib }: 2 3buildPythonPackage rec { 4 pname = "CoAPthon3"; 5 version = "1.0.1"; 6 disabled = isPy27; 7 8 src = fetchFromGitHub { 9 owner = "Tanganelli"; 10 repo = pname; 11 rev = version; 12 sha256 = "1im35i5i72y1p9qj8ixkwq7q6ksbrmi42giqiyfgjp1ym38snl69"; 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}