66 lines
1.4 KiB
Nix
66 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
python3,
|
|
fetchFromGitHub,
|
|
callPackage,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "qbit-manage";
|
|
version = "4.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "StuffAnThings";
|
|
repo = "qbit_manage";
|
|
rev = "v${version}";
|
|
hash = "sha256-Wj1s11PwHfH4hDGEn0jW/REO2gI7+AGyb2B/QKUhlyk=";
|
|
};
|
|
|
|
postPatch = ''
|
|
rm LICENSE
|
|
'';
|
|
|
|
build-system = [
|
|
python3.pkgs.setuptools
|
|
python3.pkgs.wheel
|
|
];
|
|
|
|
dependencies = with python3.pkgs; [
|
|
croniter
|
|
gitpython
|
|
humanize
|
|
pytimeparse2
|
|
bencode-py
|
|
requests
|
|
retrying
|
|
ruamel-yaml
|
|
schedule
|
|
(callPackage ./qbittorrent-api.nix {
|
|
inherit lib;
|
|
inherit (python3.pkgs)
|
|
buildPythonPackage
|
|
fetchPypi
|
|
|
|
# build-system
|
|
setuptools
|
|
setuptools-scm
|
|
|
|
# dependencies
|
|
packaging
|
|
requests
|
|
urllib3
|
|
;
|
|
})
|
|
];
|
|
|
|
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";
|
|
};
|
|
}
|