2021-01-14 08:24:21 +00:00
|
|
|
{ stdenv, lib, buildPythonApplication, fetchPypi, matplotlib, numpy, pymavlink, pyserial
|
|
|
|
, setuptools, wxPython_4_0, billiard, gnureadline }:
|
2019-12-14 05:32:57 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "MAVProxy";
|
2021-02-17 22:46:44 +00:00
|
|
|
version = "1.8.34";
|
2019-12-14 05:32:57 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-17 22:46:44 +00:00
|
|
|
sha256 = "b922c9b6cf4719667e195a02d8364ccebbe7966a9c18666f8ac22eae9d9e7a2c";
|
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 = [
|
|
|
|
matplotlib
|
|
|
|
numpy
|
|
|
|
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";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ lopsided98 ];
|
|
|
|
};
|
|
|
|
}
|