1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 setuptools, 7 matplotlib, 8 networkx, 9 numpy, 10 scipy, 11 pytest7CheckHook, 12}: 13 14buildPythonPackage { 15 pname = "scikit-fuzzy"; 16 version = "0.4.2-unstable-2023-09-14"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.9"; 20 21 src = fetchFromGitHub { 22 owner = "scikit-fuzzy"; 23 repo = "scikit-fuzzy"; 24 rev = "d7551b649f34c2f5e98836e9b502279226d3b225"; 25 hash = "sha256-91Udm2dIaIwTVG6V1EqYA/4qryuS4APgaa7tIa3sSQE="; 26 }; 27 28 build-system = [ setuptools ]; 29 30 propagatedBuildInputs = [ 31 networkx 32 numpy 33 scipy 34 ]; 35 36 nativeCheckInputs = [ 37 matplotlib 38 pytest7CheckHook 39 ]; 40 41 preCheck = "rm -rf build"; 42 43 pythonImportsCheck = [ "skfuzzy" ]; 44 45 meta = with lib; { 46 homepage = "https://github.com/scikit-fuzzy/scikit-fuzzy"; 47 description = "Fuzzy logic toolkit for scientific Python"; 48 license = licenses.bsd3; 49 maintainers = [ maintainers.bcdarwin ]; 50 }; 51}