summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/lo/loramon/package.nix
blob: 7afc77600f11498da40a9f9679561adb3031eabd (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
{
  lib,
  python3,
  fetchFromGitHub,
}:

python3.pkgs.buildPythonApplication (finalAttrs: {
  pname = "loramon";
  version = "0.9.7";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "markqvist";
    repo = "LoRaMon";
    tag = finalAttrs.version;
    hash = "sha256-94tXhuAoaS1y/zGz63PPqOayRylGK0Ei2a6H4/BCB30";
  };

  nativeBuildInputs = with python3.pkgs; [
    setuptools
  ];

  propagatedBuildInputs = with python3.pkgs; [
    pyserial
  ];

  meta = {
    description = "LoRa packet sniffer for RNode hardware";
    mainProgram = "loramon";
    homepage = "https://github.com/markqvist/LoRaMon";
    changelog = "https://github.com/markqvist/LoRaMon/releases/tag/${finalAttrs.version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ erethon ];
  };
})