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}";