1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 pytestCheckHook,
7 pytest-cov-stub,
8}:
9
10buildPythonPackage rec {
11 pname = "tiered-debug";
12 version = "1.3.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "untergeek";
17 repo = "tiered-debug";
18 tag = "v${version}";
19 hash = "sha256-2mThiuJUX+N5qIOXpdFOuIa+kBGYzbZzCeaAfEz3Iy0=";
20 };
21
22 build-system = [ hatchling ];
23
24 nativeCheckInputs = [
25 pytest-cov-stub
26 pytestCheckHook
27 ];
28
29 pythonImportsCheck = [ "tiered_debug" ];
30
31 disabledTests = [
32 # AssertionError
33 "test_add_handler"
34 "test_log_with_default_stacklevel"
35 ];
36
37 meta = {
38 description = "Python logging helper module that allows for multiple tiers of debug logging";
39 homepage = "https://github.com/untergeek/tiered-debug";
40 changelog = "https://github.com/untergeek/tiered-debug/releases/tag/${src.tag}";
41 license = lib.licenses.asl20;
42 maintainers = with lib.maintainers; [ fab ];
43 };
44}