2022-08-15 02:16:42 +01:00
|
|
|
{ stdenv, lib, buildPythonApplication, fetchPypi, lxml, matplotlib, numpy
|
|
|
|
, opencv4, pymavlink, pyserial, setuptools, wxPython_4_0, billiard
|
|
|
|
, gnureadline }:
|
2019-12-14 05:32:57 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "MAVProxy";
|
2022-10-13 17:35:12 +01:00
|
|
|
version = "1.8.57";
|
2019-12-14 05:32:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-10-13 17:35:12 +01:00
|
|
|
sha256 = "sha256-tsx3oVXPIa3OtbLWj3QWrW9leL9/jsdbbLG+Wd3nxn4=";
|
2019-12-14 05:32:57 +00:00
|
|
|
};
|
|
|
|
|
2021-01-14 08:24:21 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "opencv-python" ""
|
|
|
|
'';
|
|
|
|
|
2019-12-14 05:32:57 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-08-15 02:16:42 +01:00
|
|
|
lxml
|
2019-12-14 05:32:57 +00:00
|
|
|
matplotlib
|
|
|
|
numpy
|
2022-08-15 02:16:42 +01:00
|
|
|
opencv4
|
2019-12-14 05:32:57 +00:00
|
|
|
pymavlink
|
|
|
|
pyserial
|
|
|
|
setuptools
|
|
|
|
wxPython_4_0
|
2021-01-14 08:24:21 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [ billiard gnureadline ];
|
2019-12-14 05:32:57 +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-13 03:51:36 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2019-12-14 05:32:57 +00:00
|
|
|
maintainers = with maintainers; [ lopsided98 ];
|
|
|
|
};
|
|
|
|
}
|