2020-11-30 08:33:03 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy27
|
|
|
|
, fetchFromGitHub
|
|
|
|
, matplotlib
|
|
|
|
, networkx
|
|
|
|
, nose
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scikit-fuzzy";
|
2021-09-22 15:38:15 +00:00
|
|
|
version = "unstable-2021-03-31";
|
2020-11-30 08:33:03 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2021-09-22 15:38:15 +00:00
|
|
|
rev = "92ad3c382ac19707086204ac6cdf6e81353345a7";
|
|
|
|
sha256 = "0q89p385nsg3lymlsqm3mw6y45vgrk6w9p30igbm59b7r9mkgdj8";
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ networkx numpy scipy ];
|
|
|
|
checkInputs = [ matplotlib nose pytestCheckHook ];
|
|
|
|
|
2021-09-22 15:38:15 +00:00
|
|
|
# test error: "ValueError: could not convert string to float: '2.6.2'"
|
|
|
|
disabledTestPaths = [ "skfuzzy/control/tests/test_controlsystem.py" ];
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/scikit-fuzzy/scikit-fuzzy";
|
|
|
|
description = "Fuzzy logic toolkit for scientific Python";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.bcdarwin ];
|
|
|
|
};
|
|
|
|
}
|