From ddd064543950793cf68a05e8f30172f856295d24 Mon Sep 17 00:00:00 2001 From: Alejandro Sanchez Medina Date: Wed, 11 Oct 2023 10:00:14 +0100 Subject: [PATCH] sphinx-sitemap: apply feedback --- .../python-modules/sphinx-sitemap/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/sphinx-sitemap/default.nix b/pkgs/development/python-modules/sphinx-sitemap/default.nix index 9f8a76d83d0c..da41fb56e7e0 100644 --- a/pkgs/development/python-modules/sphinx-sitemap/default.nix +++ b/pkgs/development/python-modules/sphinx-sitemap/default.nix @@ -2,8 +2,7 @@ , buildPythonPackage , fetchPypi , sphinx -, pytest -, +, pytestCheckHook }: let pname = "sphinx-sitemap"; @@ -11,6 +10,7 @@ let in buildPythonPackage { inherit pname version; + pyproject = true; src = fetchPypi { inherit pname version; @@ -22,13 +22,14 @@ buildPythonPackage { ]; nativeCheckInputs = [ - pytest + pytestCheckHook + ]; + + pytestFlagsArray = [ + "--fixtures tests" ]; doCheck = true; - checkPhase = '' - pytest --fixtures tests - ''; meta = with lib; { changelog = "https://github.com/jdillard/sphinx-sitemap/releases/tag/v${version}";