2020-12-07 07:45:13 +00:00
|
|
|
{ buildPythonPackage, cachetools, fetchFromGitHub, isPy27, lib }:
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "CoAPthon3";
|
2021-08-10 14:31:46 +00:00
|
|
|
version = "1.0.2";
|
2020-12-07 07:45:13 +00:00
|
|
|
disabled = isPy27;
|
2020-11-30 08:33:03 +00:00
|
|
|
|
2020-12-07 07:45:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Tanganelli";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-08-10 14:31:46 +00:00
|
|
|
sha256 = "sha256-9QApoPUu3XFZY/lgjAsf5r2StFiRtUd1UXWDrzYUh6w=";
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ cachetools ];
|
|
|
|
|
2020-12-07 07:45:13 +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-30 08:33:03 +00:00
|
|
|
meta = with lib; {
|
2020-12-07 07:45:13 +00:00
|
|
|
inherit (src.meta) homepage;
|
2020-11-30 08:33:03 +00:00
|
|
|
description = "Python3 library to the CoAP protocol compliant with the RFC.";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ urbas ];
|
|
|
|
};
|
|
|
|
}
|