073d3c1b77
Also, alphabetize the dependencies. Add dependencies that are not part of install_requires (apparently due to some issue with pip and distro packaging). The closure size is increased somewhat by OpenCV, but this allows all the tools to work correctly.
40 lines
912 B
Nix
40 lines
912 B
Nix
{ stdenv, lib, buildPythonApplication, fetchPypi, lxml, matplotlib, numpy
|
|
, opencv4, pymavlink, pyserial, setuptools, wxPython_4_0, billiard
|
|
, gnureadline }:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "MAVProxy";
|
|
version = "1.8.55";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-RS3/U52n1Gs3cJtlZeE5z5q1EmC8NrPFt0mHhvIWVTA=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "opencv-python" ""
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
lxml
|
|
matplotlib
|
|
numpy
|
|
opencv4
|
|
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 ];
|
|
};
|
|
}
|