python311Packages.scikit-fuzzy: refactor

This commit is contained in:
Martin Weinelt 2024-03-24 20:48:07 +01:00
parent a48a349657
commit 312523f9f5
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
1 changed files with 19 additions and 8 deletions

View File

@ -1,22 +1,24 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, fetchpatch
, pythonAtLeast
, setuptools
, matplotlib
, networkx
, nose
, numpy
, scipy
, pytestCheckHook
, pytest7CheckHook
}:
buildPythonPackage rec {
pname = "scikit-fuzzy";
version = "unstable-2022-11-07";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.6";
# code depends on distutils
disabled = pythonAtLeast "3.12";
src = fetchFromGitHub {
owner = pname;
@ -44,11 +46,20 @@ buildPythonPackage rec {
})
];
propagatedBuildInputs = [ networkx numpy scipy ];
nativeCheckInputs = [ matplotlib nose pytestCheckHook ];
build-system = [
setuptools
];
pytestFlagsArray = [
"-W" "ignore::pytest.PytestRemovedIn8Warning"
propagatedBuildInputs = [
networkx
numpy
scipy
];
nativeCheckInputs = [
matplotlib
nose
pytest7CheckHook
];
pythonImportsCheck = [ "skfuzzy" ];