2020-11-26 22:28:24 +00:00
|
|
|
{ buildPythonPackage, cachetools, fetchFromGitHub, isPy27, lib }:
|
2020-11-21 22:47:24 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "CoAPthon3";
|
|
|
|
version = "1.0.1";
|
2020-11-26 22:28:24 +00:00
|
|
|
disabled = isPy27;
|
2020-11-21 22:47:24 +00:00
|
|
|
|
2020-11-26 22:16:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Tanganelli";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1im35i5i72y1p9qj8ixkwq7q6ksbrmi42giqiyfgjp1ym38snl69";
|
2020-11-21 22:47:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cachetools ];
|
|
|
|
|
2020-11-26 22:16:12 +00:00
|
|
|
# tests take in the order of 10 minutes to execute and sometimes hang forever on tear-down
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "coapthon" ];
|
|
|
|
|
2020-11-21 22:47:24 +00:00
|
|
|
meta = with lib; {
|
2020-11-26 22:16:12 +00:00
|
|
|
inherit (src.meta) homepage;
|
2020-11-21 22:47:24 +00:00
|
|
|
description = "Python3 library to the CoAP protocol compliant with the RFC.";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ urbas ];
|
|
|
|
};
|
|
|
|
}
|