2020-06-08 15:05:03 +01:00
|
|
|
{ buildPythonPackage, isPy27, fetchFromGitHub, lib, ipaddress }:
|
2019-05-19 11:11:41 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "piccata";
|
2020-06-08 15:05:03 +01:00
|
|
|
version = "2.0.0";
|
|
|
|
disabled = isPy27;
|
2019-05-19 11:11:41 +01:00
|
|
|
|
2020-06-08 15:05:03 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "NordicSemiconductor";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0pn842jcf2czjks5dphivgp1s7wiifqiv93s0a89h0wxafd6pbsr";
|
2019-05-19 11:11:41 +01:00
|
|
|
};
|
|
|
|
|
2020-06-08 15:05:03 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
ipaddress
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "piccata" ];
|
2019-05-19 11:11:41 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Simple CoAP (RFC7252) toolkit";
|
|
|
|
homepage = "https://github.com/NordicSemiconductor/piccata";
|
|
|
|
maintainers = with lib.maintainers; [ gebner ];
|
|
|
|
};
|
|
|
|
}
|