57 lines
1.2 KiB
Nix
57 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "qbit-manage";
|
|
version = "4.6.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "StuffAnThings";
|
|
repo = "qbit_manage";
|
|
rev = "v${version}";
|
|
hash = "sha256-cTxM3nHQQto7lpoNjShYcCbJCSYiwS9bKqw0DWAjw6A=";
|
|
};
|
|
|
|
postPatch = ''
|
|
rm LICENSE
|
|
'';
|
|
|
|
build-system = builtins.attrValues {
|
|
inherit (python3.pkgs)
|
|
setuptools
|
|
wheel
|
|
;
|
|
};
|
|
|
|
propagatedBuildInputs = builtins.attrValues {
|
|
inherit (python3.pkgs)
|
|
argon2-cffi
|
|
bencode-py
|
|
croniter
|
|
fastapi
|
|
gitpython
|
|
humanize
|
|
pytimeparse2
|
|
qbittorrent-api
|
|
requests
|
|
retrying
|
|
ruamel-yaml
|
|
slowapi
|
|
uvicorn
|
|
;
|
|
};
|
|
|
|
meta = {
|
|
description = "This tool will help manage tedious tasks in qBittorrent and automate them. Tag, categorize, remove Orphaned data, remove unregistered torrents and much much more";
|
|
homepage = "https://github.com/StuffAnThings/qbit_manage";
|
|
changelog = "https://github.com/StuffAnThings/qbit_manage/blob/${src.rev}/CHANGELOG";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ CaptainJawZ ];
|
|
mainProgram = "qbit-manage";
|
|
};
|
|
}
|