about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2023-04-30 18:52:37 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2023-04-30 18:52:37 +0200
commit4a288de75a4bce72ac6250ce923fcb7fa2ec15da (patch)
tree04677ab50f8d90e9b9cfc2d0164b64c36caaa058
parente4a4848cc23fe295a3f4fb4730188cb47d491fab (diff)
downloadnixlib-4a288de75a4bce72ac6250ce923fcb7fa2ec15da.tar
nixlib-4a288de75a4bce72ac6250ce923fcb7fa2ec15da.tar.gz
nixlib-4a288de75a4bce72ac6250ce923fcb7fa2ec15da.tar.bz2
nixlib-4a288de75a4bce72ac6250ce923fcb7fa2ec15da.tar.lz
nixlib-4a288de75a4bce72ac6250ce923fcb7fa2ec15da.tar.xz
nixlib-4a288de75a4bce72ac6250ce923fcb7fa2ec15da.tar.zst
nixlib-4a288de75a4bce72ac6250ce923fcb7fa2ec15da.zip
python310Packages.simpful: init at 2.10.0
-rw-r--r--pkgs/development/python-modules/simpful/default.nix55
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/simpful/default.nix b/pkgs/development/python-modules/simpful/default.nix
new file mode 100644
index 000000000000..ae266bb165d2
--- /dev/null
+++ b/pkgs/development/python-modules/simpful/default.nix
@@ -0,0 +1,55 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, matplotlib
+, numpy
+, pytestCheckHook
+, pythonOlder
+, scipy
+, seaborn
+, requests
+}:
+
+buildPythonPackage rec {
+  pname = "simpful";
+  version = "2.10.0";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.7";
+
+  src = fetchFromGitHub {
+    owner = "aresio";
+    repo = pname;
+    rev = "refs/tags/${version}";
+    hash = "sha256-vT7Y/6bD+txEVEw/zelMogQ0V7BIHHRitrC1COByzhY=";
+  };
+
+  propagatedBuildInputs = [
+    numpy
+    scipy
+    requests
+  ];
+
+  passthru.optional-dependencies = {
+    plotting = [
+      matplotlib
+      seaborn
+    ];
+  };
+
+  nativeCheckInputs = [
+    pytestCheckHook
+  ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
+
+  pythonImportsCheck = [
+    "simpful"
+  ];
+
+  meta = with lib; {
+    description = "Library for fuzzy logic";
+    homepage = "https://github.com/aresio/simpful";
+    changelog = "https://github.com/aresio/simpful/releases/tag/${version}";
+    license = with licenses; [ lgpl3Only ];
+    maintainers = with maintainers; [ fab ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 7514dcb356b8..27471f21de55 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -10848,6 +10848,8 @@ self: super: with self; {
 
   simplisafe-python = callPackage ../development/python-modules/simplisafe-python { };
 
+  simpful = callPackage ../development/python-modules/simpful { };
+
   simpy = callPackage ../development/python-modules/simpy { };
 
   single-version = callPackage ../development/python-modules/single-version { };