1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, pydsdl
6}:
7
8 buildPythonPackage rec {
9 pname = "nunavut";
10 version = "1.0.3";
11 disabled = pythonOlder "3.5"; # only python>=3.5 is supported
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "474392035e9e20b2c74dced7df8bda135fd5c0ead2b2cf64523a4968c785ea73";
16 };
17
18 propagatedBuildInputs = [
19 pydsdl
20 ];
21
22 # allow for writable directory for darwin
23 preBuild = ''
24 export HOME=$TMPDIR
25 '';
26
27 # No tests in pypy package and no git tags yet for release versions, see
28 # https://github.com/UAVCAN/nunavut/issues/182
29 doCheck = false;
30
31 pythonImportsCheck = [
32 "nunavut"
33 ];
34
35 meta = with lib; {
36 description = "A UAVCAN DSDL template engine";
37 longDescription = ''
38 It exposes a pydsdl abstract syntax tree to Jinja2 templates allowing
39 authors to generate code, schemas, metadata, documentation, etc.
40 '';
41 homepage = "https://nunavut.readthedocs.io/";
42 maintainers = with maintainers; [ wucke13 ];
43 license = with licenses; [ bsd3 mit ];
44 };
45}