tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
yrd: use python3
Robert Schütz
4 years ago
d7d60979
957f1f72
+19
-9
1 changed file
expand all
collapse all
unified
split
pkgs
tools
networking
yrd
default.nix
+19
-9
pkgs/tools/networking/yrd/default.nix
reviewed
···
1
1
-
{ lib, fetchFromGitHub, pythonPackages }:
1
1
+
{ lib
2
2
+
, python3
3
3
+
, fetchFromGitHub
4
4
+
}:
2
5
3
3
-
let
6
6
+
python3.pkgs.buildPythonApplication rec {
4
7
pname = "yrd";
5
8
version = "0.5.3";
6
6
-
sha256 = "1yx1hr8z4cvlb3yi24dwafs0nxq41k4q477jc9q24w61a0g662ps";
7
7
-
8
8
-
in pythonPackages.buildPythonApplication {
9
9
-
name = "${pname}-${version}";
10
9
11
10
src = fetchFromGitHub {
12
11
owner = "kpcyrd";
13
12
repo = pname;
14
13
rev = "v${version}";
15
15
-
inherit sha256;
14
14
+
sha256 = "1yx1hr8z4cvlb3yi24dwafs0nxq41k4q477jc9q24w61a0g662ps";
16
15
};
17
16
18
18
-
propagatedBuildInputs = with pythonPackages; [ argh ];
17
17
+
propagatedBuildInputs = with python3.pkgs; [
18
18
+
argh
19
19
+
requests
20
20
+
];
21
21
+
22
22
+
checkInputs = with python3.pkgs; [
23
23
+
nose
24
24
+
];
25
25
+
26
26
+
checkPhase = ''
27
27
+
nosetests -v yrd
28
28
+
'';
19
29
20
30
meta = with lib; {
21
31
description = "Cjdns swiss army knife";
22
32
maintainers = with maintainers; [ akru ];
23
33
platforms = platforms.linux;
24
24
-
license = licenses.gpl3;
34
34
+
license = licenses.gpl3Only;
25
35
homepage = "https://github.com/kpcyrd/yrd";
26
36
};
27
37
}