yrd: use python3
This commit is contained in:
parent
957f1f7243
commit
d7d609790a
@ -1,27 +1,37 @@
|
|||||||
{ lib, fetchFromGitHub, pythonPackages }:
|
{ lib
|
||||||
|
, python3
|
||||||
|
, fetchFromGitHub
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
python3.pkgs.buildPythonApplication rec {
|
||||||
pname = "yrd";
|
pname = "yrd";
|
||||||
version = "0.5.3";
|
version = "0.5.3";
|
||||||
sha256 = "1yx1hr8z4cvlb3yi24dwafs0nxq41k4q477jc9q24w61a0g662ps";
|
|
||||||
|
|
||||||
in pythonPackages.buildPythonApplication {
|
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "kpcyrd";
|
owner = "kpcyrd";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
inherit sha256;
|
sha256 = "1yx1hr8z4cvlb3yi24dwafs0nxq41k4q477jc9q24w61a0g662ps";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = with pythonPackages; [ argh ];
|
propagatedBuildInputs = with python3.pkgs; [
|
||||||
|
argh
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = with python3.pkgs; [
|
||||||
|
nose
|
||||||
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
nosetests -v yrd
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Cjdns swiss army knife";
|
description = "Cjdns swiss army knife";
|
||||||
maintainers = with maintainers; [ akru ];
|
maintainers = with maintainers; [ akru ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3Only;
|
||||||
homepage = "https://github.com/kpcyrd/yrd";
|
homepage = "https://github.com/kpcyrd/yrd";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user