summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/logging-tree/default.nix
blob: cf6d359c3ee6b0f86a51da343223fa25f256936f (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,
  fetchFromGitHub,
  setuptools,
  unittestCheckHook,
}:

buildPythonPackage rec {
  pname = "logging-tree";
  version = "1.10";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "brandon-rhodes";
    repo = "logging_tree";
    tag = version;
    hash = "sha256-9MeCx708EUe5dmFkol+HISzdBX+yar1HjKIAwmg1msA=";
  };

  build-system = [ setuptools ];

  nativeCheckInputs = [ unittestCheckHook ];

  pythonImportsCheck = [ "logging_tree" ];

  meta = {
    description = "Debug Python logging problems by printing out the tree of handlers you have defined";
    homepage = "https://github.com/brandon-rhodes/logging_tree";
    license = [ lib.licenses.bsd2 ];
    maintainers = [ lib.maintainers.rskew ];
  };
}