qbit-manage: init at 4.6.5 (#466747)
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
python3Packages,
|
||||
testers,
|
||||
nix-update-script,
|
||||
qbit-manage,
|
||||
}:
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "qbit-manage";
|
||||
version = "4.6.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "StuffAnThings";
|
||||
repo = "qbit_manage";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-JCsbf2mPRhs7Mbekl946G/y/CSNSSvQBLvlwVy/Avcg=";
|
||||
};
|
||||
|
||||
pyproject = true;
|
||||
build-system = [ python3Packages.setuptools ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace "==" ">=" \
|
||||
--replace "bencodepy" "bencode.py"
|
||||
'';
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
argon2-cffi
|
||||
bencode-py
|
||||
croniter
|
||||
fastapi
|
||||
gitpython
|
||||
humanize
|
||||
pytimeparse2
|
||||
qbittorrent-api
|
||||
requests
|
||||
retrying
|
||||
ruamel-yaml
|
||||
slowapi
|
||||
uvicorn
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"fastapi"
|
||||
"gitpython"
|
||||
"humanize"
|
||||
"ruamel.yaml"
|
||||
"uvicorn"
|
||||
];
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
tests = {
|
||||
version = testers.testVersion {
|
||||
package = qbit-manage;
|
||||
command = "env HOME=$TMPDIR qbit-manage --version";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "This tool will help manage tedious tasks in qBittorrent and automate them";
|
||||
homepage = "https://github.com/StuffAnThings/qbit_manage";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ flyingpeakock ];
|
||||
platforms = lib.platforms.all;
|
||||
mainProgram = "qbit-manage";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user