Commit 4a288de7 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python310Packages.simpful: init at 2.10.0

parent e4a4848c
Loading
Loading
Loading
Loading
+55 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -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 { };