Merge pull request #134749 from bcdarwin/improve-pycm-checkPhase

python3Packages.pycm: clean up checkPhase
This commit is contained in:
Sandro 2021-08-19 19:32:51 +02:00 committed by GitHub
commit 30fbae14f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";