depot/third_party/nixpkgs/pkgs/applications/science/robotics/mavproxy/default.nix

37 lines
888 B
Nix
Raw Normal View History

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