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
902 B
Nix
Raw Normal View History

{ stdenv, lib, buildPythonApplication, fetchPypi, lxml, matplotlib, numpy
, opencv4, pymavlink, pyserial, setuptools, wxpython, billiard
, gnureadline }:
2019-12-14 05:32:57 +00:00
buildPythonApplication rec {
pname = "MAVProxy";
2024-02-28 09:50:10 +00:00
version = "1.8.70";
2019-12-14 05:32:57 +00:00
src = fetchPypi {
inherit pname version;
2024-02-28 09:50:10 +00:00
hash = "sha256-U5K+0lxJbBvwETnJ3MTMkk47CMOSlJBeFrCLHW9OSh8=";
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
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 ];
};
}