2020-11-26 22:28:24 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
cachetools,
|
|
|
|
fetchFromGitHub,
|
|
|
|
isPy27,
|
|
|
|
lib,
|
|
|
|
}:
|
2020-11-21 22:47:24 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-03-18 21:29:55 +00:00
|
|
|
pname = "coapthon3";
|
2021-08-09 11:18:24 +01:00
|
|
|
version = "1.0.2";
|
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";
|
2024-03-18 21:29:55 +00:00
|
|
|
repo = "CoAPthon3";
|
2020-11-26 22:16:12 +00:00
|
|
|
rev = version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-9QApoPUu3XFZY/lgjAsf5r2StFiRtUd1UXWDrzYUh6w=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|