From 827bad2edc1b442410dabb5998bc882f3b1eac12 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 10 Feb 2021 22:23:37 +0100 Subject: [PATCH] python3Packages.ansiwrap: switch to pytestCheckHook --- .../python-modules/ansiwrap/default.nix | 22 +++++++------------ 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/ansiwrap/default.nix b/pkgs/development/python-modules/ansiwrap/default.nix index 1af39e970bc..1d0aef1ee5d 100644 --- a/pkgs/development/python-modules/ansiwrap/default.nix +++ b/pkgs/development/python-modules/ansiwrap/default.nix @@ -1,11 +1,10 @@ { lib -, buildPythonPackage -, fetchPypi -, tox -, pytest , ansicolors +, buildPythonPackage , coverage -, pytestcov +, fetchPypi +, pytest-cov +, pytestCheckHook , textwrap3 }: @@ -20,20 +19,15 @@ buildPythonPackage rec { }; checkInputs = [ - tox - pytest ansicolors coverage - pytestcov + pytest-cov + pytestCheckHook ]; - propagatedBuildInputs = [ - textwrap3 - ]; + propagatedBuildInputs = [ textwrap3 ]; - checkPhase = '' - pytest - ''; + pythonImportsCheck = [ "ansiwrap" ]; meta = with lib; { description = "Textwrap, but savvy to ANSI colors and styles";