e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
43 lines
838 B
Nix
43 lines
838 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
|
|
# build dependencies
|
|
, setuptools
|
|
|
|
# dependencies
|
|
, cbor2
|
|
, pyyaml
|
|
, regex
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "zcbor";
|
|
version = "0.8.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-47HwITfFcHNze3tt4vJxHB4BQ7oyl17DM8IV0WomM5Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
cbor2
|
|
pyyaml
|
|
regex
|
|
];
|
|
|
|
pythonImportsCheck = [ "zcbor" ];
|
|
|
|
meta = with lib; {
|
|
description = "A low footprint CBOR library in the C language (C++ compatible), tailored for use in microcontrollers";
|
|
homepage = "https://pypi.org/project/zcbor/";
|
|
changelog = "https://github.com/NordicSemiconductor/zcbor/releases/tag/${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ otavio ];
|
|
};
|
|
}
|