summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/loguru-logging-intercept/default.nix
blob: f7176f2ad558ee75749994136564dabd43faa697 (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
{
  lib,
  buildPythonPackage,
  setuptools,
  loguru,
  fetchPypi,
}:

buildPythonPackage (finalAttrs: {
  pname = "loguru-logging-intercept";
  version = "0.1.5";
  pyproject = true;

  # no tags on git
  src = fetchPypi {
    pname = "loguru_logging_intercept";
    inherit (finalAttrs) version;
    hash = "sha256-WBA4vxMQ+7Bs2kivvTc+crvAHVHE3wWPSQgat6fF+YQ=";
  };

  build-system = [ setuptools ];

  dependencies = [ loguru ];

  pythonImportsCheck = [ "loguru_logging_intercept" ];

  meta = {
    description = "Code to integrate Loguru with Python's standard logging module";
    homepage = "https://github.com/MatthewScholefield/loguru-logging-intercept";
    maintainers = with lib.maintainers; [ sigmanificient ];
    license = lib.licenses.mit;
  };
})