summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pymavlink/default.nix
blob: 01e362ba12416cc2fc8b21a665ca807d6e1453a3 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
  lib,
  buildPythonPackage,
  cython,
  fastcrc,
  fetchPypi,
  lxml,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pymavlink";
  version = "2.4.49";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-188Q1VktA4oYqpcnERd+u4i+IUPvzCWN9jCwUT6dosI=";
  };

  build-system = [
    cython
    setuptools
  ];

  dependencies = [
    fastcrc
    lxml
  ];

  # No tests included in PyPI tarball. We cannot use the GitHub tarball because
  # we would like to use the same commit of the mavlink messages repo as
  # included in the PyPI tarball, and there is no easy way to determine what
  # commit is included.
  doCheck = false;

  pythonImportsCheck = [ "pymavlink" ];

  meta = with lib; {
    description = "Python MAVLink interface and utilities";
    homepage = "https://github.com/ArduPilot/pymavlink";
    changelog = "https://github.com/ArduPilot/pymavlink/releases/tag/${version}";
    license = with licenses; [
      lgpl3Plus
      mit
    ];
    maintainers = with maintainers; [ lopsided98 ];
  };
}