12 buildPythonPackage rec {
15 format = "setuptools";
17 disabled = pythonOlder "3.5";
19 src = fetchFromGitHub {
20 owner = "sepandhaghighi";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-GyH06G7bArFBTzV/Sx/KmoJvcoed0sswW7qGqsSULHo=";
26 propagatedBuildInputs = [
32 nativeCheckInputs = [ pytestCheckHook ];
35 # Minor tolerance issues with Python 3.12; should be fixed in next release
36 # (see https://github.com/sepandhaghighi/pycm/pull/528)
42 # Remove a trivial dependency on the author's `art` Python ASCII art library
44 # Also depends on python3Packages.notebook
45 rm Otherfiles/notebook_check.py
46 substituteInPlace setup.py \
47 --replace-fail '=get_requires()' '=[]'
50 pythonImportsCheck = [ "pycm" ];
53 description = "Multiclass confusion matrix library";
54 homepage = "https://pycm.io";
55 license = licenses.mit;
56 maintainers = with maintainers; [ bcdarwin ];