From 18c1b519b34de145f40dd440285c89ffa9a71223 Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Wed, 18 Aug 2021 21:44:10 -0400 Subject: [PATCH] python3Packages.pycm: clean up checkPhase --- pkgs/development/python-modules/pycm/default.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pycm/default.nix b/pkgs/development/python-modules/pycm/default.nix index 614393cf2d59..c56a43e6071c 100644 --- a/pkgs/development/python-modules/pycm/default.nix +++ b/pkgs/development/python-modules/pycm/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, matplotlib, numpy, pytest, seaborn }: +{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, matplotlib, numpy, pytestCheckHook, seaborn }: buildPythonPackage rec { pname = "pycm"; @@ -16,16 +16,14 @@ buildPythonPackage rec { # remove a trivial dependency on the author's `art` Python ASCII art library postPatch = '' rm pycm/__main__.py + rm Otherfiles/notebook_check.py # also depends on python3Packages.notebook substituteInPlace setup.py --replace '=get_requires()' '=[]' ''; - checkInputs = [ pytest ]; + checkInputs = [ pytestCheckHook ]; + disabledTests = [ "pycm.pycm_compare.Compare" ]; # output formatting error propagatedBuildInputs = [ matplotlib numpy seaborn ]; - checkPhase = '' - pytest Test/ - ''; - meta = with lib; { description = "Multiclass confusion matrix library"; homepage = "https://pycm.ir";