1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6}:
7
8buildPythonPackage rec {
9 pname = "dronecan";
10 version = "1.0.26";
11 format = "setuptools";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-D2odxa9ADswrg6rgKLTyQulHpGec1r0lWRUZDV5YvyE=";
16 };
17
18 nativeCheckInputs = [ pytestCheckHook ];
19
20 pythonImportsCheck = [ "dronecan" ];
21
22 meta = with lib; {
23 description = "Python implementation of the DroneCAN v1 protocol stack";
24 mainProgram = "dronecan_bridge.py";
25 longDescription = ''
26 DroneCAN is a lightweight protocol designed for reliable communication in aerospace and robotic applications via CAN bus.
27 '';
28 homepage = "https://dronecan.github.io/";
29 license = licenses.mit;
30 teams = [ teams.ororatech ];
31 };
32}