2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
|
|
|
|
# build dependencies
|
|
|
|
setuptools,
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
cbor2,
|
|
|
|
pyyaml,
|
|
|
|
regex,
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zcbor";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "0.8.1";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-U3Y/r3tBhzK6bGnMxdqKzS7bLHyAzgpGZ5PVK9pw7Pk=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cbor2
|
|
|
|
pyyaml
|
|
|
|
regex
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "zcbor" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Low footprint CBOR library in the C language (C++ compatible), tailored for use in microcontrollers";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "zcbor";
|
2023-11-16 04:20:00 +00:00
|
|
|
homepage = "https://pypi.org/project/zcbor/";
|
2024-01-13 08:15:51 +00:00
|
|
|
changelog = "https://github.com/NordicSemiconductor/zcbor/releases/tag/${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ otavio ];
|
|
|
|
};
|
|
|
|
}
|