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

{ stdenv, lib, buildPythonApplication, fetchPypi, lxml, matplotlib, numpy
2023-03-19 08:29:51 +00:00
, opencv4, pymavlink, pyserial, setuptools, wxPython_4_2, billiard
, gnureadline }:
2019-12-14 05:32:57 +00:00
buildPythonApplication rec {
pname = "MAVProxy";
2023-08-24 16:28:51 +00:00
version = "1.8.66";
2019-12-14 05:32:57 +00:00
src = fetchPypi {
inherit pname version;
2023-08-24 16:28:51 +00:00
hash = "sha256-tIwXiDHEmFHF5Jdv25hPkzEqAdig+i5h4fW6SGIrZDM=";
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
2023-03-19 08:29:51 +00:00
wxPython_4_2
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 ];
};
}