Merge pull request #264438 from otavio/zcbor

python3Packages.zcbor: init at 0.7.0
This commit is contained in:
Thiago Kenji Okada 2023-11-08 23:14:26 +00:00 committed by GitHub
commit 07a8e2f9ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

@ -15980,6 +15980,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 { };