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
|
|
|
|
];
|
|
|
|
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = with python3.pkgs; [
|
2021-12-28 10:35:57 +01:00
|
|
|
nose
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests -v yrd
|
|
|
|
'';
|
2018-05-08 11:31:35 +02:00
|
|
|
|
2021-01-11 08:54:33 +01: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;
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/kpcyrd/yrd";
|
2018-05-08 11:31:35 +02:00
|
|
|
};
|
|
|
|
}
|