python3Packages.logboth: init at 0.1.0

This commit is contained in:
aleksana
2025-12-08 13:57:48 +08:00
parent b165db2470
commit 3dba6e97d9
2 changed files with 40 additions and 0 deletions
@@ -0,0 +1,38 @@
{
lib,
buildPythonPackage,
fetchFromGitLab,
setuptools,
}:
buildPythonPackage rec {
pname = "logboth";
version = "0.1.0";
pyproject = true;
src = fetchFromGitLab {
owner = "zehkira";
repo = "logboth";
tag = "v${version}";
hash = "sha256-z62atvFYrRqjcGQbTlWadoG1TPrNl8WwDBclzhqQtPA=";
};
build-system = [ setuptools ];
checkPhase = ''
runHook preInstallCheck
python3 source/tests/tests.py
runHook postInstallCheck
'';
pythonImportsCheck = [ "logboth" ];
meta = {
description = "Easily write logs to standard output and a file at the same time";
homepage = "https://gitlab.com/zehkira/logboth";
license = lib.licenses.bsd0;
maintainers = with lib.maintainers; [ aleksana ];
};
}
+2
View File
@@ -8976,6 +8976,8 @@ self: super: with self; {
logbook = callPackage ../development/python-modules/logbook { };
logboth = callPackage ../development/python-modules/logboth { };
logfury = callPackage ../development/python-modules/logfury { };
logging-journald = callPackage ../development/python-modules/logging-journald { };