depot/third_party/nixpkgs/pkgs/applications/science/robotics/mavproxy/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

39 lines
912 B
Nix

{ stdenv, lib, buildPythonApplication, fetchPypi, lxml, matplotlib, numpy
, opencv4, pymavlink, pyserial, setuptools, wxPython_4_0, billiard
, gnureadline }:
buildPythonApplication rec {
pname = "MAVProxy";
version = "1.8.59";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-XY0d9q4nSuPflN4ZX+nT4RKFy6i4Cd2lNWvWaJQzWW8=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "opencv-python" ""
'';
propagatedBuildInputs = [
lxml
matplotlib
numpy
opencv4
pymavlink
pyserial
setuptools
wxPython_4_0
] ++ 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 ];
};
}