From 1a9fa1a2f3efa483f8a6b8eafd4a17b5d86bdc91 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 24 Feb 2023 12:43:39 +0100 Subject: [PATCH] python310Packages.pytest-flask: add pythonImportsCheck --- .../python-modules/pytest-flask/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/pytest-flask/default.nix b/pkgs/development/python-modules/pytest-flask/default.nix index c48f3ea58f0a..97f4a8fdc862 100644 --- a/pkgs/development/python-modules/pytest-flask/default.nix +++ b/pkgs/development/python-modules/pytest-flask/default.nix @@ -12,16 +12,22 @@ buildPythonPackage rec { sha256 = "46fde652f77777bf02dc91205aec4ce20cdf2acbbbd66a918ab91f5c14693d3d"; }; - doCheck = false; + nativeBuildInputs = [ + setuptools-scm + ]; - buildInputs = [ pytest ]; + buildInputs = [ + pytest + ]; propagatedBuildInputs = [ flask werkzeug ]; - nativeBuildInputs = [ setuptools-scm ]; + pythonImportsCheck = [ + "pytest_flask" + ]; meta = with lib; { description = "A set of pytest fixtures to test Flask applications";