{ stdenv, lib, buildPythonApplication, fetchPypi, matplotlib, numpy, pymavlink, pyserial , setuptools, wxPython_4_0, billiard, gnureadline }: buildPythonApplication rec { pname = "MAVProxy"; version = "1.8.46"; src = fetchPypi { inherit pname version; sha256 = "c740c11551af4bcb1378772bde77ca6c846c6fd261b79d932c0ecbb164afe3bd"; }; 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 ]; }; }