python3Packages.zcbor: init at 0.7.0

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
This commit is contained in:
Otavio Salvador 2023-10-30 17:31:34 -03:00
parent 8fc9bb20e4
commit 1646eec3be
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,42 @@
{ lib
, buildPythonPackage
, fetchPypi
# build dependencies
, setuptools
# dependencies
, cbor2
, pyyaml
, regex
}:
buildPythonPackage rec {
pname = "zcbor";
version = "0.7.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-0mGp7Hnq8ZNEUx/9eQ6UD9/cOuLl6S5Aif1qNh1+jYA=";
};
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/";
license = licenses.asl20;
maintainers = with maintainers; [ otavio ];
};
}

View File

@ -15881,6 +15881,8 @@ self: super: with self; {
zc_lockfile = callPackage ../development/python-modules/zc_lockfile { };
zcbor = callPackage ../development/python-modules/zcbor { };
zconfig = callPackage ../development/python-modules/zconfig { };
zcs = callPackage ../development/python-modules/zcs { };