1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 setuptools, 7 matplotlib, 8 networkx, 9 numpy, 10 scipy, 11 pytestCheckHook, 12}: 13 14buildPythonPackage rec { 15 pname = "scikit-fuzzy"; 16 version = "0.5.0"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.9"; 20 21 src = fetchFromGitHub { 22 owner = "scikit-fuzzy"; 23 repo = "scikit-fuzzy"; 24 tag = "v${version}"; 25 hash = "sha256-02aIYBdbQXQD9S1R/gZZeKTn5LxloE0GGGRttxJnR/o="; 26 }; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 networkx 32 numpy 33 scipy 34 ]; 35 36 nativeCheckInputs = [ 37 matplotlib 38 pytestCheckHook 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 changelog = "https://github.com/scikit-fuzzy/scikit-fuzzy/releases/tag/${src.tag}"; 49 license = licenses.bsd3; 50 maintainers = [ maintainers.bcdarwin ]; 51 }; 52}