1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, matplotlib
6, networkx
7, nose
8, numpy
9, scipy
10, pytestCheckHook
11}:
12
13buildPythonPackage rec {
14 pname = "scikit-fuzzy";
15 version = "unstable-2022-11-07";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.6";
19
20 src = fetchFromGitHub {
21 owner = pname;
22 repo = pname;
23 rev = "d8c45c259d62955004379592e45bc64c8e002fc3";
24 hash = "sha256-kS48aHC719wUdc2WcJa9geoMUcLHSj7ZsoRZYAhF2a0=";
25 };
26
27 propagatedBuildInputs = [ networkx numpy scipy ];
28 nativeCheckInputs = [ matplotlib nose pytestCheckHook ];
29
30 # numpy API breakage: "AttributeError: module 'numpy' has no attribute 'float'"
31 disabledTests = [ "test_fuzzy_compare" ];
32
33 pythonImportsCheck = [ "skfuzzy" ];
34
35 meta = with lib; {
36 homepage = "https://github.com/scikit-fuzzy/scikit-fuzzy";
37 description = "Fuzzy logic toolkit for scientific Python";
38 license = licenses.bsd3;
39 maintainers = [ maintainers.bcdarwin ];
40 };
41}