qbit-manage wip

This commit is contained in:
Danilo Reyes 2024-12-15 00:05:41 -06:00
parent e13587733e
commit 7e658479f8
2 changed files with 80 additions and 0 deletions

34
pkgs/bencodepy.nix Normal file
View File

@ -0,0 +1,34 @@
{
lib,
python3,
fetchPypi,
}:
python3.pkgs.buildPythonApplication rec {
pname = "bencodepy";
version = "0.9.5";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-r0chNNc+pY7as8LLLyz2HrnXg5CChMPS1bHP0434ZLg=";
extension = "zip";
};
build-system = [
python3.pkgs.setuptools
python3.pkgs.wheel
];
pythonImportsCheck = [
"bencodepy"
];
meta = {
description = "Bencode encoder/decoder written in Python 3 under the GPLv2";
homepage = "https://pypi.org/project/bencodepy/";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ CaptainJawZ ];
mainProgram = "bencodepy";
};
}

46
pkgs/qbit-manage.nix Normal file
View File

@ -0,0 +1,46 @@
{
lib,
python3,
fetchFromGitHub,
callPackage,
}:
python3.pkgs.buildPythonApplication rec {
pname = "qbit-manage";
version = "4.1.14";
pyproject = true;
src = fetchFromGitHub {
owner = "StuffAnThings";
repo = "qbit_manage";
rev = "v${version}";
hash = "sha256-JTQZlJ2d0oOpT8lIf9mgQ/onTs5jiWfvzFx0XBjbCQo=";
};
build-system = [
python3.pkgs.setuptools
python3.pkgs.wheel
];
dependencies = with python3.pkgs; [
croniter
gitpython
humanize
pytimeparse2
qbittorrent-api
requests
retrying
ruamel-yaml
schedule
(callPackage ./bencodepy.nix { })
];
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";
};
}