onionbalance: init at 0.2.4

add the onionbalance package from the torproject
This commit is contained in:
ForgottenBeast
2025-10-07 10:49:09 +02:00
parent 618b6dbfc2
commit 4e11ddec24
+38
View File
@@ -0,0 +1,38 @@
{
lib,
python3Packages,
fetchFromGitLab,
}:
python3Packages.buildPythonApplication rec {
pname = "onionbalance";
version = "0.2.4";
pyproject = true;
src = fetchFromGitLab {
domain = "gitlab.torproject.org";
owner = "tpo";
repo = "onion-services/onionbalance";
tag = version;
hash = "sha256-amwKP9LJ7aHPECNUNTluFpgIFSRLxR7eHQxBxW5574I=";
};
dependencies = with python3Packages; [
cryptography
pycryptodomex
pyyaml
setproctitle
stem
];
build-system = with python3Packages; [
setuptools
];
meta = {
description = "Tool for loadbalancing onion services";
homepage = "https://github.com/torproject/onionbalance";
changelog = "https://github.com/torproject/onionbalance/blob/${version}/docs/changelog.md";
license = lib.licenses.gpl3Plus;
maintainers = [ lib.maintainers.ForgottenBeast ];
mainProgram = "onionbalance";
};
}