depot/third_party/nixpkgs/pkgs/applications/science/robotics/mavproxy/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

39 lines
902 B
Nix

{ stdenv, lib, buildPythonApplication, fetchPypi, lxml, matplotlib, numpy
, opencv4, pymavlink, pyserial, setuptools, wxpython, 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
] ++ 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 ];
};
}