From 09e603c18f05e65acaa2d02cbbcf9831cbbab3a3 Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Tue, 13 Jan 2026 23:56:41 +0100 Subject: [PATCH] python313Packages.logging-tree: modernize --- .../python-modules/logging-tree/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/logging-tree/default.nix b/pkgs/development/python-modules/logging-tree/default.nix index cf6d359c3ee6..3fff50fa2757 100644 --- a/pkgs/development/python-modules/logging-tree/default.nix +++ b/pkgs/development/python-modules/logging-tree/default.nix @@ -3,24 +3,24 @@ buildPythonPackage, fetchFromGitHub, setuptools, - unittestCheckHook, + pytestCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "logging-tree"; version = "1.10"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "brandon-rhodes"; repo = "logging_tree"; - tag = version; + tag = finalAttrs.version; hash = "sha256-9MeCx708EUe5dmFkol+HISzdBX+yar1HjKIAwmg1msA="; }; build-system = [ setuptools ]; - nativeCheckInputs = [ unittestCheckHook ]; + nativeCheckInputs = [ pytestCheckHook ]; pythonImportsCheck = [ "logging_tree" ]; @@ -30,4 +30,4 @@ buildPythonPackage rec { license = [ lib.licenses.bsd2 ]; maintainers = [ lib.maintainers.rskew ]; }; -} +})