From 7f48484135060f2a8822da9023a94b286ba6056e Mon Sep 17 00:00:00 2001 From: sveitser Date: Sat, 5 Jun 2021 15:57:44 +0800 Subject: [PATCH] python3Packages.pyls-black: use pytestCheckHook --- pkgs/development/python-modules/pyls-black/default.nix | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pyls-black/default.nix b/pkgs/development/python-modules/pyls-black/default.nix index a0419d5d03f..b72d789ccfd 100644 --- a/pkgs/development/python-modules/pyls-black/default.nix +++ b/pkgs/development/python-modules/pyls-black/default.nix @@ -1,5 +1,5 @@ { lib, buildPythonPackage, fetchFromGitHub -, black, toml, pytest, python-language-server, isPy3k +, black, toml, pytestCheckHook, python-language-server, isPy3k }: buildPythonPackage rec { @@ -15,11 +15,7 @@ buildPythonPackage rec { disabled = !isPy3k; - checkPhase = '' - pytest - ''; - - checkInputs = [ pytest ]; + checkInputs = [ pytestCheckHook ]; propagatedBuildInputs = [ black toml python-language-server ];