2022-09-14 18:05:37 +00:00
|
|
|
{ stdenv, lib, buildPythonApplication, fetchPypi, lxml, matplotlib, numpy
|
2023-03-24 00:07:29 +00:00
|
|
|
, opencv4, pymavlink, pyserial, setuptools, wxPython_4_2, billiard
|
2022-09-14 18:05:37 +00:00
|
|
|
, gnureadline }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "MAVProxy";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.8.66";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-tIwXiDHEmFHF5Jdv25hPkzEqAdig+i5h4fW6SGIrZDM=";
|
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
|
2023-03-24 00:07:29 +00:00
|
|
|
wxPython_4_2
|
2021-01-15 22:18:51 +00:00
|
|
|
] ++ lib.optionals stdenv.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 ];
|
|
|
|
};
|
|
|
|
}
|