From 8a8d28fa984eb0c29b03c874e3c4b4e5bfbe5842 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 24 Feb 2023 12:47:48 +0100 Subject: [PATCH] python310Packages.pytest-flask: switch to pytestCheckHook --- .../python-modules/pytest-flask/default.nix | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pytest-flask/default.nix b/pkgs/development/python-modules/pytest-flask/default.nix index 97f4a8fdc862..4db1967dc609 100644 --- a/pkgs/development/python-modules/pytest-flask/default.nix +++ b/pkgs/development/python-modules/pytest-flask/default.nix @@ -1,4 +1,13 @@ -{ lib, buildPythonPackage, fetchPypi, pytest, flask, werkzeug, setuptools-scm, pythonOlder }: +{ lib +, buildPythonPackage +, fetchPypi +, flask +, pytest +, pytestCheckHook +, pythonOlder +, setuptools-scm +, werkzeug +}: buildPythonPackage rec { pname = "pytest-flask"; @@ -9,7 +18,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - sha256 = "46fde652f77777bf02dc91205aec4ce20cdf2acbbbd66a918ab91f5c14693d3d"; + hash = "sha256-Rv3mUvd3d78C3JEgWuxM4gzfKsu71mqRirkfXBRpPT0="; }; nativeBuildInputs = [ @@ -25,6 +34,10 @@ buildPythonPackage rec { werkzeug ]; + nativeCheckInputs = [ + pytestCheckHook + ]; + pythonImportsCheck = [ "pytest_flask" ];