2020-06-06 18:15:27 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pydsdl";
|
2021-06-19 00:39:24 +01:00
|
|
|
version = "1.12.1";
|
2020-06-06 18:15:27 +01:00
|
|
|
disabled = pythonOlder "3.5"; # only python>=3.5 is supported
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "UAVCAN";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-06-19 00:39:24 +01:00
|
|
|
sha256 = "sha256-5AwwqduIvLSZk6WcI59frwRKwjniQXfNWWVsy6V6I1E=";
|
2020-06-06 18:15:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# allow for writable directory for darwin
|
|
|
|
preBuild = ''
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
|
2021-02-05 20:03:18 +00:00
|
|
|
# repo doesn't contain tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-06 18:15:27 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pydsdl"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A UAVCAN DSDL compiler frontend implemented in Python";
|
|
|
|
longDescription = ''
|
|
|
|
It supports all DSDL features defined in the UAVCAN specification.
|
|
|
|
'';
|
|
|
|
homepage = "https://uavcan.org";
|
|
|
|
maintainers = with maintainers; [ wucke13 ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|