3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/robotics/mavproxy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
912 B
Nix
Raw Normal View History

{ stdenv, lib, buildPythonApplication, fetchPypi, lxml, matplotlib, numpy
, opencv4, pymavlink, pyserial, setuptools, wxPython_4_0, billiard
, gnureadline }:
2019-12-14 05:32:57 +00:00
buildPythonApplication rec {
pname = "MAVProxy";
2022-10-13 17:35:12 +01:00
version = "1.8.57";
2019-12-14 05:32:57 +00:00
src = fetchPypi {
inherit pname version;
2022-10-13 17:35:12 +01:00
sha256 = "sha256-tsx3oVXPIa3OtbLWj3QWrW9leL9/jsdbbLG+Wd3nxn4=";
2019-12-14 05:32:57 +00:00
};
2021-01-14 08:24:21 +00:00
postPatch = ''
substituteInPlace setup.py \
--replace "opencv-python" ""
'';
2019-12-14 05:32:57 +00:00
propagatedBuildInputs = [
lxml
2019-12-14 05:32:57 +00:00
matplotlib
numpy
opencv4
2019-12-14 05:32:57 +00:00
pymavlink
pyserial
setuptools
wxPython_4_0
2021-01-14 08:24:21 +00:00
] ++ lib.optionals stdenv.isDarwin [ billiard gnureadline ];
2019-12-14 05:32:57 +00:00
# No tests
doCheck = false;
meta = with lib; {
description = "MAVLink proxy and command line ground station";
homepage = "https://github.com/ArduPilot/MAVProxy";
license = licenses.gpl3Plus;
2019-12-14 05:32:57 +00:00
maintainers = with maintainers; [ lopsided98 ];
};
}