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