forked from mirrors/nixpkgs
Merge pull request #264438 from otavio/zcbor
python3Packages.zcbor: init at 0.7.0
This commit is contained in:
commit
07a8e2f9ca
42
pkgs/development/python-modules/zcbor/default.nix
Normal file
42
pkgs/development/python-modules/zcbor/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue