2022-09-14 18:05:37 +00:00
|
|
|
{ stdenv, lib, buildPythonApplication, fetchPypi, lxml, matplotlib, numpy
|
2024-01-13 08:15:51 +00:00
|
|
|
, opencv4, pymavlink, pyserial, setuptools, wxpython, billiard
|
2022-09-14 18:05:37 +00:00
|
|
|
, gnureadline }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "MAVProxy";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.8.70";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-U5K+0lxJbBvwETnJ3MTMkk47CMOSlJBeFrCLHW9OSh8=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|