python312Packages.fnllm: 0.0.11 -> 0.0.12 (#364582)
[NixPkgs.git] / pkgs / development / python-modules / simpful / default.nix
blob731d9299fc2c312df1be1c5c0c675340e3c4f750
2   lib,
3   stdenv,
4   buildPythonPackage,
5   fetchFromGitHub,
6   matplotlib,
7   numpy,
8   pytestCheckHook,
9   pythonOlder,
10   requests,
11   scipy,
12   seaborn,
13   setuptools,
16 buildPythonPackage rec {
17   pname = "simpful";
18   version = "2.12.0";
19   pyproject = true;
21   disabled = pythonOlder "3.7";
23   src = fetchFromGitHub {
24     owner = "aresio";
25     repo = "simpful";
26     rev = "refs/tags/${version}";
27     hash = "sha256-NtTw7sF1WfVebUk1wHrM8FHAe3/FXDcMApPkDbw0WXo=";
28   };
30   nativeBuildInputs = [ setuptools ];
32   propagatedBuildInputs = [
33     numpy
34     scipy
35     requests
36   ];
38   optional-dependencies = {
39     plotting = [
40       matplotlib
41       seaborn
42     ];
43   };
45   nativeCheckInputs = [
46     pytestCheckHook
47   ] ++ lib.flatten (builtins.attrValues optional-dependencies);
49   pythonImportsCheck = [ "simpful" ];
51   meta = with lib; {
52     description = "Library for fuzzy logic";
53     homepage = "https://github.com/aresio/simpful";
54     changelog = "https://github.com/aresio/simpful/releases/tag/${version}";
55     license = with licenses; [ lgpl3Only ];
56     maintainers = with maintainers; [ fab ];
57     broken = stdenv.hostPlatform.isDarwin;
58   };