summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/adsbcot/default.nix
blob: 2d58a591b977c2f12f350d2abe2a1497a09482e5 (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
50
51
52
53
54
55
56
57
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
  pytest-asyncio,
  pytak,
  aircot,
  websockets,
}:

buildPythonPackage (finalAttrs: {
  pname = "adsbcot";
  version = "9.0.1";
  pyproject = true;
  __structuredAttrs = true;

  src = fetchFromGitHub {
    owner = "snstac";
    repo = "adsbcot";
    tag = "v${finalAttrs.version}";
    hash = "sha256-pOSeWwNrqF4OGL/b6cz8W1+e+jz7ShmoF5WEcKl3y2E=";
  };

  build-system = [ setuptools ];

  dependencies = [
    pytak
    aircot
    websockets
  ];

  pythonRelaxDeps = [ "websockets" ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-asyncio
  ];

  disabledTests = [
    # broken upstream, see https://github.com/snstac/adsbcot/issues/61
    "test_adsb_to_cot_xml"
    "test_adsb_to_cot_with_known_craft"
  ];

  pythonImportsCheck = [ "adsbcot" ];

  meta = {
    description = "Display Aircraft in TAK - ADS-B to TAK Gateway";
    homepage = "https://adsbcot.readthedocs.io";
    changelog = "https://github.com/snstac/adsbcot/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ felbinger ];
    platforms = lib.platforms.linux;
  };
})