From 81ddff3a5a35f1112f2ae214f1bd7b8d83a703f2 Mon Sep 17 00:00:00 2001 From: TomaSajt <62384384+TomaSajt@users.noreply.github.com> Date: Mon, 6 May 2024 21:21:12 +0200 Subject: [PATCH] python312Packages.asciitree: use pyproject = true --- .../python-modules/asciitree/default.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/asciitree/default.nix b/pkgs/development/python-modules/asciitree/default.nix index 323e1fbf8739..206793653665 100644 --- a/pkgs/development/python-modules/asciitree/default.nix +++ b/pkgs/development/python-modules/asciitree/default.nix @@ -1,28 +1,29 @@ { lib , buildPythonPackage , fetchFromGitHub -, pytest +, setuptools +, pytestCheckHook }: buildPythonPackage rec { pname = "asciitree"; version = "0.3.3"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "mbr"; - repo = pname; + repo = "asciitree"; rev = version; - sha256 = "071wlpyi8pa262sj9xdy0zbj163z84dasxad363z3sfndqxw78h1"; + hash = "sha256-AaLDO27W6fGHGU11rRpBf5gg1we+9SS1MEJdFP2lPBw="; }; - nativeCheckInputs = [ - pytest + build-system = [ + setuptools ]; - checkPhase = '' - pytest - ''; + nativeCheckInputs = [ + pytestCheckHook + ]; meta = with lib; { description = "Draws ASCII trees";