Merge pull request #153604 from fabaff/fix-pycm

python3Packages.pycm: disable failing test
This commit is contained in:
Pavol Rusnak 2022-01-05 16:50:54 +01:00 committed by GitHub
commit 2468b6527a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,10 +1,19 @@
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, matplotlib, numpy, pytestCheckHook, seaborn }: { lib
, buildPythonPackage
, fetchFromGitHub
, matplotlib
, numpy
, pytestCheckHook
, pythonOlder
, seaborn
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pycm"; pname = "pycm";
version = "3.3"; version = "3.3";
format = "setuptools";
disabled = !isPy3k; disabled = pythonOlder "3.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sepandhaghighi"; owner = "sepandhaghighi";
@ -13,16 +22,34 @@ buildPythonPackage rec {
sha256 = "0i3qpb20mnc22qny1ar3yvxb1dac7njwi8bvi5sy5kywz10c5dkw"; sha256 = "0i3qpb20mnc22qny1ar3yvxb1dac7njwi8bvi5sy5kywz10c5dkw";
}; };
# remove a trivial dependency on the author's `art` Python ASCII art library propagatedBuildInputs = [
matplotlib
numpy
seaborn
];
checkInputs = [
pytestCheckHook
];
postPatch = '' postPatch = ''
# Remove a trivial dependency on the author's `art` Python ASCII art library
rm pycm/__main__.py rm pycm/__main__.py
rm Otherfiles/notebook_check.py # also depends on python3Packages.notebook # Also depends on python3Packages.notebook
substituteInPlace setup.py --replace '=get_requires()' '=[]' rm Otherfiles/notebook_check.py
substituteInPlace setup.py \
--replace '=get_requires()' '=[]'
''; '';
checkInputs = [ pytestCheckHook ]; disabledTests = [
disabledTests = [ "pycm.pycm_compare.Compare" ]; # output formatting error # Output formatting error
propagatedBuildInputs = [ matplotlib numpy seaborn ]; "pycm.pycm_compare.Compare"
"plot_test"
];
pythonImportsCheck = [
"pycm"
];
meta = with lib; { meta = with lib; {
description = "Multiclass confusion matrix library"; description = "Multiclass confusion matrix library";