Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / simpful / default.nix
blob37f2ae860c0ec21cea31d0bad3c144a4a3d7a5ff
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , fetchFromGitHub
5 , matplotlib
6 , numpy
7 , pytestCheckHook
8 , pythonOlder
9 , requests
10 , scipy
11 , seaborn
12 , setuptools
15 buildPythonPackage rec {
16   pname = "simpful";
17   version = "2.12.0";
18   pyproject = true;
20   disabled = pythonOlder "3.7";
22   src = fetchFromGitHub {
23     owner = "aresio";
24     repo = "simpful";
25     rev = "refs/tags/${version}";
26     hash = "sha256-NtTw7sF1WfVebUk1wHrM8FHAe3/FXDcMApPkDbw0WXo=";
27   };
29   nativeBuildInputs = [
30     setuptools
31   ];
33   propagatedBuildInputs = [
34     numpy
35     scipy
36     requests
37   ];
39   passthru.optional-dependencies = {
40     plotting = [
41       matplotlib
42       seaborn
43     ];
44   };
46   nativeCheckInputs = [
47     pytestCheckHook
48   ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
50   pythonImportsCheck = [
51     "simpful"
52   ];
54   meta = with lib; {
55     description = "Library for fuzzy logic";
56     homepage = "https://github.com/aresio/simpful";
57     changelog = "https://github.com/aresio/simpful/releases/tag/${version}";
58     license = with licenses; [ lgpl3Only ];
59     maintainers = with maintainers; [ fab ];
60     broken = stdenv.isDarwin;
61   };