1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/tools/networking/yrd/default.nix

38 lines
696 B
Nix
Raw Normal View History

2021-12-28 09:35:57 +00:00
{ lib
, python3
, fetchFromGitHub
}:
2018-05-08 10:31:35 +01:00
2021-12-28 09:35:57 +00:00
python3.pkgs.buildPythonApplication rec {
2018-05-08 10:31:35 +01:00
pname = "yrd";
version = "0.5.3";
src = fetchFromGitHub {
owner = "kpcyrd";
2019-09-09 00:38:31 +01:00
repo = pname;
2018-05-08 10:31:35 +01:00
rev = "v${version}";
2021-12-28 09:35:57 +00:00
sha256 = "1yx1hr8z4cvlb3yi24dwafs0nxq41k4q477jc9q24w61a0g662ps";
2018-05-08 10:31:35 +01:00
};
2021-12-28 09:35:57 +00:00
propagatedBuildInputs = with python3.pkgs; [
argh
requests
];
nativeCheckInputs = with python3.pkgs; [
2021-12-28 09:35:57 +00:00
nose
];
checkPhase = ''
nosetests -v yrd
'';
2018-05-08 10:31:35 +01:00
meta = with lib; {
2018-05-08 10:31:35 +01:00
description = "Cjdns swiss army knife";
maintainers = with maintainers; [ akru ];
platforms = platforms.linux;
2021-12-28 09:35:57 +00:00
license = licenses.gpl3Only;
homepage = "https://github.com/kpcyrd/yrd";
2018-05-08 10:31:35 +01:00
};
}