1{ lib 2, buildPythonPackage 3, fetchPypi 4 5# build dependencies 6, setuptools 7 8# dependencies 9, cbor2 10, pyyaml 11, regex 12}: 13 14buildPythonPackage rec { 15 pname = "zcbor"; 16 version = "0.7.0"; 17 pyproject = true; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-0mGp7Hnq8ZNEUx/9eQ6UD9/cOuLl6S5Aif1qNh1+jYA="; 22 }; 23 24 nativeBuildInputs = [ 25 setuptools 26 ]; 27 28 propagatedBuildInputs = [ 29 cbor2 30 pyyaml 31 regex 32 ]; 33 34 pythonImportsCheck = [ "zcbor" ]; 35 36 meta = with lib; { 37 description = "A low footprint CBOR library in the C language (C++ compatible), tailored for use in microcontrollers"; 38 homepage = "https://pypi.org/project/zcbor/"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ otavio ]; 41 }; 42}