nixpkgs-suyu/pkgs/tools/networking/yrd/default.nix

38 lines
690 B
Nix
Raw Normal View History

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