Files
nixpkgs/pkgs/by-name/py/pyrosimple/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

74 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
pyrosimple,
python3,
testers,
withInotify ? stdenv.hostPlatform.isLinux,
}:
python3.pkgs.buildPythonApplication rec {
pname = "pyrosimple";
version = "2.14.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "kannibalox";
repo = "pyrosimple";
tag = "v${version}";
hash = "sha256-qER73B6wuRczwV23A+NwfDL4oymvSwmauA0uf2AE+kY=";
};
pythonRelaxDeps = [
"prometheus-client"
"python-daemon"
];
nativeBuildInputs = with python3.pkgs; [
poetry-core
];
propagatedBuildInputs =
with python3.pkgs;
[
bencode-py
apscheduler
jinja2
python-daemon
importlib-resources
parsimonious
prometheus-client
prompt-toolkit
requests
shtab
python-box
tomli-w
]
++ lib.optionals (pythonOlder "3.11") [
tomli
]
++ lib.optional withInotify inotify;
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook
];
passthru = {
updateScript = nix-update-script { };
tests = testers.testVersion {
package = pyrosimple;
command = "pyroadmin --version";
};
};
meta = {
description = "RTorrent client";
homepage = "https://kannibalox.github.io/pyrosimple/";
changelog = "https://github.com/kannibalox/pyrosimple/blob/v${version}/CHANGELOG.md";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ vamega ];
};
}