depot/third_party/nixpkgs/pkgs/development/python-modules/pydsdl/default.nix
Default email fcc03dbfc5 Project import generated by Copybara.
GitOrigin-RevId: ff96a0fa5635770390b184ae74debea75c3fd534
2021-02-13 15:23:35 +01:00

36 lines
861 B
Nix

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