depot/third_party/nixpkgs/pkgs/development/python-modules/zcbor/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

42 lines
750 B
Nix

{ 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 ];
};
}