Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / scikit-fuzzy / default.nix
blob03f10f129cbd5f39a937cf3ad270157cf4eb5ae7
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , fetchpatch
5 , pythonAtLeast
6 , setuptools
7 , matplotlib
8 , networkx
9 , nose
10 , numpy
11 , scipy
12 , pytest7CheckHook
15 buildPythonPackage rec {
16   pname = "scikit-fuzzy";
17   version = "unstable-2022-11-07";
18   pyproject = true;
20   # code depends on distutils
21   disabled = pythonAtLeast "3.12";
23   src = fetchFromGitHub {
24     owner = pname;
25     repo = pname;
26     rev = "d8c45c259d62955004379592e45bc64c8e002fc3";
27     hash = "sha256-kS48aHC719wUdc2WcJa9geoMUcLHSj7ZsoRZYAhF2a0=";
28   };
30   patches = [
31     # https://github.com/scikit-fuzzy/scikit-fuzzy/pull/299
32     (fetchpatch {
33       name = "numpy-1.25-test-compatibility-1.patch";
34       url = "https://github.com/scikit-fuzzy/scikit-fuzzy/commit/d7d114cff002e2edf9361a55cb985615e91797b5.patch";
35       hash = "sha256-udF/z94tVGRHq7gcOko4BSkvVnqe/A/bAARfCPrc06M=";
36     })
37     (fetchpatch {
38       name = "numpy-1.25-test-compatibility-2.patch";
39       url = "https://github.com/scikit-fuzzy/scikit-fuzzy/commit/f1612f6aeff34dc9329dbded7cee098fcd22ffd9.patch";
40       hash = "sha256-Le1ECR4+RjWCkfqjVrd471GD7tuVaQlZ7RZd3zvFdHU=";
41     })
42     (fetchpatch {
43       name = "numpy-1.25-test-compatibility-3.patch";
44       url = "https://github.com/scikit-fuzzy/scikit-fuzzy/commit/459b9602cf182b7b42f93aad8bcf3bda6f20bfb5.patch";
45       hash = "sha256-gKrhNpGt6XoAlMwQW70OPFZj/ZC8NhQq6dEaBpGE8yY=";
46     })
47   ];
49   build-system = [
50     setuptools
51   ];
53   propagatedBuildInputs = [
54     networkx
55     numpy
56     scipy
57   ];
59   nativeCheckInputs = [
60     matplotlib
61     nose
62     pytest7CheckHook
63   ];
65   pythonImportsCheck = [ "skfuzzy" ];
67   meta = with lib; {
68     homepage = "https://github.com/scikit-fuzzy/scikit-fuzzy";
69     description = "Fuzzy logic toolkit for scientific Python";
70     license = licenses.bsd3;
71     maintainers = [ maintainers.bcdarwin ];
72   };