2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
fetchpatch,
|
|
|
|
pythonAtLeast,
|
|
|
|
setuptools,
|
|
|
|
matplotlib,
|
|
|
|
networkx,
|
|
|
|
nose,
|
|
|
|
numpy,
|
|
|
|
scipy,
|
|
|
|
pytest7CheckHook,
|
2020-11-30 08:33:03 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "scikit-fuzzy";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "unstable-2022-11-07";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
# code depends on distutils
|
|
|
|
disabled = pythonAtLeast "3.12";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2022-11-21 17:40:18 +00:00
|
|
|
rev = "d8c45c259d62955004379592e45bc64c8e002fc3";
|
|
|
|
hash = "sha256-kS48aHC719wUdc2WcJa9geoMUcLHSj7ZsoRZYAhF2a0=";
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/scikit-fuzzy/scikit-fuzzy/pull/299
|
|
|
|
(fetchpatch {
|
|
|
|
name = "numpy-1.25-test-compatibility-1.patch";
|
|
|
|
url = "https://github.com/scikit-fuzzy/scikit-fuzzy/commit/d7d114cff002e2edf9361a55cb985615e91797b5.patch";
|
|
|
|
hash = "sha256-udF/z94tVGRHq7gcOko4BSkvVnqe/A/bAARfCPrc06M=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "numpy-1.25-test-compatibility-2.patch";
|
|
|
|
url = "https://github.com/scikit-fuzzy/scikit-fuzzy/commit/f1612f6aeff34dc9329dbded7cee098fcd22ffd9.patch";
|
|
|
|
hash = "sha256-Le1ECR4+RjWCkfqjVrd471GD7tuVaQlZ7RZd3zvFdHU=";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "numpy-1.25-test-compatibility-3.patch";
|
|
|
|
url = "https://github.com/scikit-fuzzy/scikit-fuzzy/commit/459b9602cf182b7b42f93aad8bcf3bda6f20bfb5.patch";
|
|
|
|
hash = "sha256-gKrhNpGt6XoAlMwQW70OPFZj/ZC8NhQq6dEaBpGE8yY=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
networkx
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
matplotlib
|
|
|
|
nose
|
|
|
|
pytest7CheckHook
|
|
|
|
];
|
2020-11-30 08:33:03 +00:00
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
pythonImportsCheck = [ "skfuzzy" ];
|
2021-09-22 15:38:15 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|