about summary refs log tree commit diff
path: root/pkgs/by-name/sa/satellite/package.nix
blob: ad3afe454b65aad3f03a6d81b0e1d2b4004aa155 (plain) (blame)
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
, python3
, fetchFromGitea
, gobject-introspection
, gtk3
, libhandy
, modemmanager
, wrapGAppsHook
}:

python3.pkgs.buildPythonApplication rec {
  pname = "satellite";
  version = "0.4.3";

  pyproject = true;

  src = fetchFromGitea {
    domain ="codeberg.org";
    owner = "tpikonen";
    repo = "satellite";
    rev = version;
    hash = "sha256-4L6zbHjWAIJJv2N3XKcfHSZUAUC2FPjK5hT9XGBtQ3w=";
  };

  nativeBuildInputs = [
    gobject-introspection
    python3.pkgs.setuptools
    wrapGAppsHook
  ];

  buildInputs = [
    gtk3
    libhandy
    modemmanager
  ];

  propagatedBuildInputs = with python3.pkgs; [
    gpxpy
    pygobject3
    pynmea2
  ];

  strictDeps = true;

  meta = with lib; {
    description = "A program for showing navigation satellite data";
    longDescription = ''
      Satellite is an adaptive GTK3 / libhandy application which displays global navigation satellite system (GNSS: GPS et al.) data obtained from ModemManager or gnss-share.
      It can also save your position to a GPX-file.
    '';
    homepage = "https://codeberg.org/tpikonen/satellite";
    license = licenses.gpl3Only;
    mainProgram = "satellite";
    platforms = platforms.linux;
    maintainers = with maintainers; [ Luflosi ];
  };
}