567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
33 lines
776 B
Nix
33 lines
776 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dronecan";
|
|
version = "1.0.27";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-m6xfk/2pKfzbr0fu2GUjJnRcicoZDWzhrGJ6DDs2rBw=";
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "dronecan" ];
|
|
|
|
meta = {
|
|
description = "Python implementation of the DroneCAN v1 protocol stack";
|
|
mainProgram = "dronecan_bridge.py";
|
|
longDescription = ''
|
|
DroneCAN is a lightweight protocol designed for reliable communication in aerospace and robotic applications via CAN bus.
|
|
'';
|
|
homepage = "https://dronecan.github.io/";
|
|
license = lib.licenses.mit;
|
|
teams = [ lib.teams.ororatech ];
|
|
};
|
|
}
|