From 312523f9f5078106bba947979fadb7ed775e42c3 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 24 Mar 2024 20:48:07 +0100 Subject: [PATCH] python311Packages.scikit-fuzzy: refactor --- .../python-modules/scikit-fuzzy/default.nix | 27 +++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/scikit-fuzzy/default.nix b/pkgs/development/python-modules/scikit-fuzzy/default.nix index 5ed9d994c0e0..03f10f129cbd 100644 --- a/pkgs/development/python-modules/scikit-fuzzy/default.nix +++ b/pkgs/development/python-modules/scikit-fuzzy/default.nix @@ -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" ];