blob: 0ac5f5323b64a438c94e5aa7d7d738bfd7bf12da (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{ lib
, buildPythonPackage
, fetchPypi
# build dependencies
, setuptools
# dependencies
, cbor2
, pyyaml
, regex
}:
buildPythonPackage rec {
pname = "zcbor";
version = "0.8.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-U3Y/r3tBhzK6bGnMxdqKzS7bLHyAzgpGZ5PVK9pw7Pk=";
};
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";
mainProgram = "zcbor";
homepage = "https://pypi.org/project/zcbor/";
changelog = "https://github.com/NordicSemiconductor/zcbor/releases/tag/${version}";
license = licenses.asl20;
maintainers = with maintainers; [ otavio ];
};
}
|