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