summary refs log tree commit diff
path: root/pkgs/tools/networking/yrd/default.nix
blob: 1aace6aefbb5a39e038acf798af05a45007133e7 (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
{ lib
, python3
, fetchFromGitHub
}:

python3.pkgs.buildPythonApplication rec {
  pname = "yrd";
  version = "0.5.3";

  src = fetchFromGitHub {
    owner = "kpcyrd";
    repo = pname;
    rev = "v${version}";
    sha256 = "1yx1hr8z4cvlb3yi24dwafs0nxq41k4q477jc9q24w61a0g662ps";
  };

  propagatedBuildInputs = with python3.pkgs; [
    argh
    requests
  ];

  checkInputs = with python3.pkgs; [
    nose
  ];

  checkPhase = ''
    nosetests -v yrd
  '';

  meta = with lib; {
    description = "Cjdns swiss army knife";
    maintainers = with maintainers; [ akru ];
    platforms = platforms.linux;
    license = licenses.gpl3Only;
    homepage = "https://github.com/kpcyrd/yrd";
  };
}