2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
hatchling,
|
|
|
|
portalocker,
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "concurrent-log-handler";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.9.25";
|
|
|
|
pyproject = true;
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-04-21 15:54:59 +00:00
|
|
|
pname = "concurrent_log_handler";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-HixvAhQU4hTT2sZhB4lIJ6PnjbYwGDBKTynlW6VJrCI=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ hatchling ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = [ portalocker ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "concurrent_log_handler" ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
doCheck = false; # upstream has no tests
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python logging handler that allows multiple processes to safely write to the same log file concurrently";
|
2024-04-21 15:54:59 +00:00
|
|
|
homepage = "https://github.com/Preston-Landers/concurrent-log-handler";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.asl20;
|
2024-02-29 20:09:43 +00:00
|
|
|
maintainers = [ maintainers.bbjubjub ];
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
}
|