about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pydsdl/default.nix
blob: 08029d35df5bf9cb775d6e4febbc9a1095700886 (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
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder }:

 buildPythonPackage rec {
  pname = "pydsdl";
  version = "1.9.4";
  disabled = pythonOlder "3.5"; # only python>=3.5 is supported

  src = fetchFromGitHub {
    owner = "UAVCAN";
    repo = pname;
    rev = version;
    sha256 = "1hmmc4sg6dckbx2ghcjpi74yprapa6lkxxzy0h446mvyngp0kwfv";
  };

  # allow for writable directory for darwin
  preBuild = ''
    export HOME=$TMPDIR
  '';

  # repo doesn't contain tests
  doCheck = false;

  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;
  };
}