From 73072f314a3007d8b87c9bab6d75c5ca3f2f3c05 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 27 Mar 2024 06:00:00 +0100 Subject: [PATCH] python311Packages.djangorestframework: test with pytest 7 --- .../python-modules/djangorestframework/default.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/djangorestframework/default.nix b/pkgs/development/python-modules/djangorestframework/default.nix index 1499469c06b8..8bec94e66519 100644 --- a/pkgs/development/python-modules/djangorestframework/default.nix +++ b/pkgs/development/python-modules/djangorestframework/default.nix @@ -6,7 +6,7 @@ , django-guardian , pythonOlder , pytest-django -, pytestCheckHook +, pytest7CheckHook , pytz , pyyaml , uritemplate @@ -32,7 +32,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytest-django - pytestCheckHook + pytest7CheckHook # optional tests coreapi @@ -41,11 +41,6 @@ buildPythonPackage rec { uritemplate ]; - pytestFlagsArray = [ - # ytest.PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release. - "-W" "ignore::pytest.PytestRemovedIn8Warning" - ]; - pythonImportsCheck = [ "rest_framework" ]; meta = with lib; {