summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/concurrent-log-handler/default.nix
blob: a87f8f0feed4f8a1a8706d59c589fa1a09e8d873 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  lib,
  buildPythonPackage,
  fetchPypi,
  hatchling,
  portalocker,
}:

buildPythonPackage rec {
  pname = "concurrent-log-handler";
  version = "0.9.28";
  pyproject = true;

  src = fetchPypi {
    pname = "concurrent_log_handler";
    inherit version;
    hash = "sha256-TMJ5abNCAjm9FTd5Jm9A2XE+zoFOMSt6p1POYsbqzbg=";
  };

  build-system = [ hatchling ];

  dependencies = [ portalocker ];

  pythonImportsCheck = [ "concurrent_log_handler" ];

  doCheck = false; # upstream has no tests

  meta = {
    description = "Python logging handler that allows multiple processes to safely write to the same log file concurrently";
    homepage = "https://github.com/Preston-Landers/concurrent-log-handler";
    license = lib.licenses.asl20;
    maintainers = [ lib.maintainers.bbjubjub ];
  };
}