about summary refs log tree commit diff
path: root/pkgs/by-name/tu/tunnelgraf/package.nix
blob: d7f2c77dab0a85ff0585fb4ae9dd200f5f538656 (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
{ lib
, fetchFromGitHub
, python3
}:

python3.pkgs.buildPythonApplication rec {
  pname = "tunnelgraf";
  version = "0.6.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "denniswalker";
    repo = "tunnelgraf";
    rev = "refs/tags/v${version}";
    hash = "sha256-CsrbSpp1VszEAKpmHx8GbB7vfZCOvB+tDFNFwWKexEw=";
  };

  pythonRelaxDeps = [
    "click"
    "pydantic"
  ];

  build-system = with python3.pkgs; [
    hatchling
    pythonRelaxDepsHook
  ];

  dependencies = with python3.pkgs; [
    click
    deepmerge
    paramiko
    pydantic
    python-hosts
    pyyaml
    sshtunnel
  ];

  # Project has no tests
  doCheck = false;

  pythonImportsCheck = [
    "tunnelgraf"
  ];

  meta = with lib; {
    description = "Tool to manage SSH tunnel hops to many endpoints";
    homepage = "https://github.com/denniswalker/tunnelgraf";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
    mainProgram = "tunnelgraf";
  };
}