Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 54 lines 952 B view raw
1{ 2 stdenv, 3 lib, 4 buildPythonApplication, 5 fetchFromGitHub, 6 lxml, 7 matplotlib, 8 numpy, 9 opencv-python, 10 pymavlink, 11 pyserial, 12 setuptools, 13 wxpython, 14 billiard, 15 gnureadline, 16}: 17 18buildPythonApplication rec { 19 pname = "MAVProxy"; 20 version = "1.8.71"; 21 format = "setuptools"; 22 23 src = fetchFromGitHub { 24 owner = "ArduPilot"; 25 repo = pname; 26 tag = "v${version}"; 27 hash = "sha256-A7tqV1kBCSuWHJUTdUZGcPY/r7X1edGZs6xDctpMbMI="; 28 }; 29 30 propagatedBuildInputs = [ 31 lxml 32 matplotlib 33 numpy 34 opencv-python 35 pymavlink 36 pyserial 37 setuptools 38 wxpython 39 ] 40 ++ lib.optionals stdenv.hostPlatform.isDarwin [ 41 billiard 42 gnureadline 43 ]; 44 45 # No tests 46 doCheck = false; 47 48 meta = with lib; { 49 description = "MAVLink proxy and command line ground station"; 50 homepage = "https://github.com/ArduPilot/MAVProxy"; 51 license = licenses.gpl3Plus; 52 maintainers = with maintainers; [ lopsided98 ]; 53 }; 54}