1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 04:31:52 +00:00

mavproxy: fix darwin build

This commit is contained in:
fricklerhandwerk 2021-01-14 09:24:21 +01:00
parent a0c2948861
commit bb2879d593

View file

@ -1,5 +1,5 @@
{ lib, buildPythonApplication, fetchPypi, matplotlib, numpy, pymavlink, pyserial
, setuptools, wxPython_4_0 }:
{ stdenv, lib, buildPythonApplication, fetchPypi, matplotlib, numpy, pymavlink, pyserial
, setuptools, wxPython_4_0, billiard, gnureadline }:
buildPythonApplication rec {
pname = "MAVProxy";
@ -10,6 +10,11 @@ buildPythonApplication rec {
sha256 = "fe046481b793b592334749249620fce8a463f4c46b394ff744645975465d677b";
};
postPatch = ''
substituteInPlace setup.py \
--replace "opencv-python" ""
'';
propagatedBuildInputs = [
matplotlib
numpy
@ -17,7 +22,7 @@ buildPythonApplication rec {
pyserial
setuptools
wxPython_4_0
];
] ++ lib.optionals stdenv.isDarwin [ billiard gnureadline ];
# No tests
doCheck = false;