mavproxy: Fix usage

This commit is contained in:
BatteredBunny
2026-04-14 21:35:01 +03:00
parent 19b54cee33
commit e2b7c5448a
@@ -1,24 +1,27 @@
{
stdenv,
lib,
billiard,
buildPythonApplication,
fetchFromGitHub,
fetchpatch,
gnureadline,
lxml,
matplotlib,
numpy,
opencv-python,
pymavlink,
pynmeagps,
pyserial,
setuptools,
versionCheckHook,
wxpython,
billiard,
gnureadline,
}:
buildPythonApplication rec {
pname = "MAVProxy";
version = "1.8.74";
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "ArduPilot";
@@ -27,14 +30,25 @@ buildPythonApplication rec {
hash = "sha256-1/bp3vlCXt4Hg36zwMKSzPSxW7xlxpfx2o+2uQixdos=";
};
propagatedBuildInputs = [
patches = [
# Remove python 2 future imports
(fetchpatch {
url = "https://github.com/ArduPilot/MAVProxy/commit/db52f3f5d1991942026c00b51a3ce1ce85998cbd.patch";
hash = "sha256-mNhOfXJMiUihsso3fjzlbeXW/3ENvrdkFSLo23dMCY4=";
})
];
build-system = [ setuptools ];
dependencies = [
lxml
matplotlib
numpy
opencv-python
pymavlink
pynmeagps
pyserial
setuptools
setuptools # Imports `pkg_resources` at runtime
wxpython
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
@@ -42,12 +56,16 @@ buildPythonApplication rec {
gnureadline
];
# No tests
doCheck = false;
pythonImportsCheck = [ "MAVProxy" ];
# No tests, but we can check the version
nativeInstallCheckInputs = [ versionCheckHook ];
meta = {
description = "MAVLink proxy and command line ground station";
mainProgram = "mavproxy.py";
homepage = "https://github.com/ArduPilot/MAVProxy";
changelog = "https://github.com/ArduPilot/MAVProxy/releases/tag/${src.tag}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ lopsided98 ];
};