1{ lib, buildPythonPackage, pythonOlder, fetchPypi, pydsdl }:
2
3 buildPythonPackage rec {
4 pname = "nunavut";
5 version = "0.3.6";
6 disabled = pythonOlder "3.5"; # only python>=3.5 is supported
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "434edabdc431b9af719896e0de4bd0deead657777d1d8aa4e3cd0dcdff6298bc";
11 };
12
13 propagatedBuildInputs = [
14 pydsdl
15 ];
16
17 # allow for writable directory for darwin
18 preBuild = ''
19 export HOME=$TMPDIR
20 '';
21
22 # repo doesn't contain tests, ensure imports aren't broken
23 pythonImportsCheck = [
24 "nunavut"
25 ];
26
27 meta = with lib; {
28 description = "A UAVCAN DSDL template engine";
29 longDescription = ''
30 It exposes a pydsdl abstract syntax tree to Jinja2 templates allowing
31 authors to generate code, schemas, metadata, documentation, etc.
32 '';
33 homepage = "https://nunavut.readthedocs.io/";
34 maintainers = with maintainers; [ wucke13 ];
35 license = with licenses; [ bsd3 mit ];
36 };
37}