5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
39 lines
910 B
Nix
39 lines
910 B
Nix
{ stdenv, lib, buildPythonApplication, fetchPypi, lxml, matplotlib, numpy
|
|
, opencv4, pymavlink, pyserial, setuptools, wxPython_4_2, billiard
|
|
, gnureadline }:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "MAVProxy";
|
|
version = "1.8.66";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-tIwXiDHEmFHF5Jdv25hPkzEqAdig+i5h4fW6SGIrZDM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "opencv-python" ""
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
lxml
|
|
matplotlib
|
|
numpy
|
|
opencv4
|
|
pymavlink
|
|
pyserial
|
|
setuptools
|
|
wxPython_4_2
|
|
] ++ lib.optionals stdenv.isDarwin [ billiard gnureadline ];
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "MAVLink proxy and command line ground station";
|
|
homepage = "https://github.com/ArduPilot/MAVProxy";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ lopsided98 ];
|
|
};
|
|
}
|