From 179acaea8e42f00db1fd7e62086e1d0fd1753d7b Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Mon, 20 Jul 2026 21:50:50 +0200 Subject: [PATCH] python3Packages.grip: use pytestCheckHook --- .../python-modules/grip/default.nix | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/pkgs/development/python-modules/grip/default.nix b/pkgs/development/python-modules/grip/default.nix index 56f25b285b23..53a81d5003e8 100644 --- a/pkgs/development/python-modules/grip/default.nix +++ b/pkgs/development/python-modules/grip/default.nix @@ -5,7 +5,6 @@ # Python bits: buildPythonPackage, setuptools, - pytest, responses, docopt, flask, @@ -14,6 +13,8 @@ pygments, requests, tabulate, + addBinToPathHook, + pytestCheckHook, }: buildPythonPackage (finalAttrs: { @@ -41,11 +42,6 @@ buildPythonPackage (finalAttrs: { build-system = [ setuptools ]; - nativeCheckInputs = [ - pytest - responses - ]; - dependencies = [ docopt flask @@ -56,13 +52,16 @@ buildPythonPackage (finalAttrs: { tabulate ]; - checkPhase = '' - export PATH="$PATH:$out/bin" - py.test -xm "not assumption" - ''; - pythonImportsCheck = [ "grip" ]; + nativeCheckInputs = [ + responses + pytestCheckHook + addBinToPathHook + ]; + + enabledTestMarks = [ "not assumption" ]; + meta = { description = "Preview GitHub Markdown files like Readme locally before committing them"; mainProgram = "grip";