python310Packages.pytest-flask: switch to pytestCheckHook

This commit is contained in:
Fabian Affolter
2023-02-24 12:47:48 +01:00
parent 1a9fa1a2f3
commit 8a8d28fa98
@@ -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"
];