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

37 lines
888 B
Nix
Raw Normal View History

2021-01-14 09:24:21 +01:00
{ stdenv, lib, buildPythonApplication, fetchPypi, matplotlib, numpy, pymavlink, pyserial
, setuptools, wxPython_4_0, billiard, gnureadline }:
2019-12-14 06:32:57 +01:00
buildPythonApplication rec {
pname = "MAVProxy";
2021-10-13 02:39:29 +02:00
version = "1.8.45";
2019-12-14 06:32:57 +01:00
src = fetchPypi {
inherit pname version;
2021-10-13 02:39:29 +02:00
sha256 = "f1010cefb5b97a5d392d32aa1425bdb7df995161125f8686f2c7383c2a86e9e5";
2019-12-14 06:32:57 +01:00
};
2021-01-14 09:24:21 +01:00
postPatch = ''
substituteInPlace setup.py \
--replace "opencv-python" ""
'';
2019-12-14 06:32:57 +01:00
propagatedBuildInputs = [
matplotlib
numpy
pymavlink
pyserial
setuptools
wxPython_4_0
2021-01-14 09:24:21 +01:00
] ++ lib.optionals stdenv.isDarwin [ billiard gnureadline ];
2019-12-14 06:32:57 +01: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 06:32:57 +01:00
maintainers = with maintainers; [ lopsided98 ];
};
}