1{
2 lib,
3 buildPythonPackage,
4 cython,
5 fastcrc,
6 fetchPypi,
7 lxml,
8 setuptools,
9}:
10
11buildPythonPackage rec {
12 pname = "pymavlink";
13 version = "2.4.49";
14 pyproject = true;
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-188Q1VktA4oYqpcnERd+u4i+IUPvzCWN9jCwUT6dosI=";
19 };
20
21 build-system = [
22 cython
23 setuptools
24 ];
25
26 dependencies = [
27 fastcrc
28 lxml
29 ];
30
31 # No tests included in PyPI tarball. We cannot use the GitHub tarball because
32 # we would like to use the same commit of the mavlink messages repo as
33 # included in the PyPI tarball, and there is no easy way to determine what
34 # commit is included.
35 doCheck = false;
36
37 pythonImportsCheck = [ "pymavlink" ];
38
39 meta = with lib; {
40 description = "Python MAVLink interface and utilities";
41 homepage = "https://github.com/ArduPilot/pymavlink";
42 changelog = "https://github.com/ArduPilot/pymavlink/releases/tag/${version}";
43 license = with licenses; [
44 lgpl3Plus
45 mit
46 ];
47 maintainers = with maintainers; [ lopsided98 ];
48 };
49}