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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
690 B
Nix
Raw Normal View History

2021-12-28 09:35:57 +00:00
{ lib
, python3
, fetchFromGitHub
}:
2018-05-08 09:31:35 +00:00
2021-12-28 09:35:57 +00:00
python3.pkgs.buildPythonApplication rec {
2018-05-08 09:31:35 +00:00
pname = "yrd";
version = "0.5.3";
src = fetchFromGitHub {
owner = "kpcyrd";
2019-09-08 23:38:31 +00:00
repo = pname;
2018-05-08 09:31:35 +00:00
rev = "v${version}";
2021-12-28 09:35:57 +00:00
sha256 = "1yx1hr8z4cvlb3yi24dwafs0nxq41k4q477jc9q24w61a0g662ps";
2018-05-08 09:31:35 +00:00
};
2021-12-28 09:35:57 +00:00
propagatedBuildInputs = with python3.pkgs; [
argh
requests
];
checkInputs = with python3.pkgs; [
nose
];
checkPhase = ''
nosetests -v yrd
'';
2018-05-08 09:31:35 +00:00
meta = with lib; {
2018-05-08 09:31:35 +00: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 09:31:35 +00:00
};
}