2024-10-23 06:41:50 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lxml
|
|
|
|
, matplotlib
|
|
|
|
, numpy
|
|
|
|
, opencv4
|
|
|
|
, pymavlink
|
|
|
|
, pyserial
|
|
|
|
, setuptools
|
|
|
|
, wxpython
|
|
|
|
, billiard
|
|
|
|
, gnureadline
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "MAVProxy";
|
2024-10-23 06:41:50 +00:00
|
|
|
version = "1.8.71";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-23 06:41:50 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ArduPilot";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-A7tqV1kBCSuWHJUTdUZGcPY/r7X1edGZs6xDctpMbMI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "opencv-python" ""
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-09-14 18:05:37 +00:00
|
|
|
lxml
|
2020-04-24 23:36:52 +00:00
|
|
|
matplotlib
|
|
|
|
numpy
|
2022-09-14 18:05:37 +00:00
|
|
|
opencv4
|
2020-04-24 23:36:52 +00:00
|
|
|
pymavlink
|
|
|
|
pyserial
|
|
|
|
setuptools
|
2024-01-13 08:15:51 +00:00
|
|
|
wxpython
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optionals stdenv.hostPlatform.isDarwin [ billiard gnureadline ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "MAVLink proxy and command line ground station";
|
|
|
|
homepage = "https://github.com/ArduPilot/MAVProxy";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ lopsided98 ];
|
|
|
|
};
|
|
|
|
}
|