diff options
Diffstat (limited to 'pkgs/development/python-modules/pycm/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pycm/default.nix | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/pkgs/development/python-modules/pycm/default.nix b/pkgs/development/python-modules/pycm/default.nix index 58570c177902..0c22e1ac607d 100644 --- a/pkgs/development/python-modules/pycm/default.nix +++ b/pkgs/development/python-modules/pycm/default.nix @@ -1,11 +1,12 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, matplotlib -, numpy -, pytestCheckHook -, pythonOlder -, seaborn +{ + lib, + buildPythonPackage, + fetchFromGitHub, + matplotlib, + numpy, + pytestCheckHook, + pythonOlder, + seaborn, }: buildPythonPackage rec { @@ -28,8 +29,13 @@ buildPythonPackage rec { seaborn ]; - nativeCheckInputs = [ - pytestCheckHook + nativeCheckInputs = [ pytestCheckHook ]; + + disabledTests = [ + # Minor tolerance issues with Python 3.12; should be fixed in next release + # (see https://github.com/sepandhaghighi/pycm/pull/528) + "verified_test" + "function_test" ]; postPatch = '' @@ -38,15 +44,10 @@ buildPythonPackage rec { # Also depends on python3Packages.notebook rm Otherfiles/notebook_check.py substituteInPlace setup.py \ - --replace '=get_requires()' '=[]' + --replace-fail '=get_requires()' '=[]' ''; - # https://github.com/sepandhaghighi/pycm/issues/488 - pytestFlagsArray = [ "Test" ]; - - pythonImportsCheck = [ - "pycm" - ]; + pythonImportsCheck = [ "pycm" ]; meta = with lib; { description = "Multiclass confusion matrix library"; |