blob: d74657c16784d2785e07f057f9c1abc8f285e7e1 (
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
45
46
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pydsdl";
version = "1.18.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "OpenCyphal";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-sn7KoJmJbr7Y+N9PAXyhJnts/hW+Gi06nrHj5VIDZMU=";
};
# allow for writable directory for darwin
preBuild = ''
export HOME=$TMPDIR
'';
# Module doesn't contain tests
doCheck = false;
pythonImportsCheck = [ "pydsdl" ];
meta = with lib; {
description = "Library to process Cyphal DSDL";
longDescription = ''
PyDSDL is a Cyphal DSDL compiler front-end implemented in Python. It accepts
a DSDL namespace at the input and produces a well-annotated abstract syntax
tree (AST) at the output, evaluating all constant expressions in the process.
All DSDL features defined in the Cyphal Specification are supported. The
library should, in theory, work on any platform and with any Python
implementation.
'';
homepage = "https://pydsdl.readthedocs.io/";
license = licenses.mit;
maintainers = with maintainers; [ wucke13 ];
};
}
|