Diff: https://github.com/untergeek/tiered-debug/compare/v1.3.1...v1.4.0 Changelog: https://github.com/untergeek/tiered-debug/releases/tag/v1.4.0
45 lines
973 B
Nix
45 lines
973 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
pytestCheckHook,
|
|
pytest-cov-stub,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tiered-debug";
|
|
version = "1.4.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "untergeek";
|
|
repo = "tiered-debug";
|
|
tag = "v${version}";
|
|
hash = "sha256-lGt2cnT5Pjb87msgnDawn2gg2VtWXwniHM1wTjHU/x4=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "tiered_debug" ];
|
|
|
|
disabledTests = [
|
|
# AssertionError
|
|
"test_add_handler"
|
|
"test_log_with_default_stacklevel"
|
|
];
|
|
|
|
meta = {
|
|
description = "Python logging helper module that allows for multiple tiers of debug logging";
|
|
homepage = "https://github.com/untergeek/tiered-debug";
|
|
changelog = "https://github.com/untergeek/tiered-debug/releases/tag/${src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|