diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/python-utils/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/python-utils/default.nix | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/python-utils/default.nix b/nixpkgs/pkgs/development/python-modules/python-utils/default.nix index 936a1eb2e3ed..60160d270b75 100644 --- a/nixpkgs/pkgs/development/python-modules/python-utils/default.nix +++ b/nixpkgs/pkgs/development/python-modules/python-utils/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchPypi, pytest, pytestrunner, pytestcov, pytest-flakes, pytestpep8, sphinx, six }: +{ lib, buildPythonPackage, fetchPypi, pytestCheckHook, pytestrunner, pytestcov, pytest-flakes, sphinx, six }: buildPythonPackage rec { pname = "python-utils"; @@ -12,13 +12,10 @@ buildPythonPackage rec { postPatch = '' rm -r tests/__pycache__ rm tests/*.pyc + substituteInPlace pytest.ini --replace "--pep8" "" ''; - checkInputs = [ pytest pytestrunner pytestcov pytest-flakes pytestpep8 sphinx ]; - - checkPhase = '' - py.test tests - ''; + checkInputs = [ pytestCheckHook pytestrunner pytestcov pytest-flakes sphinx ]; propagatedBuildInputs = [ six ]; |