Unverified Commit dea8e8f8 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #229152 from fabaff/gensim-fix

python310Packages.miniful: init at 0.0.6, python310Packages.fst-pso: init at 1.8.1, python310Packages.simpful: init at 2.10.0
parents 33d2eac2 4a288de7
Loading
Loading
Loading
Loading
+39 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, miniful
, numpy
, pythonOlder
}:

buildPythonPackage rec {
  pname = "fst-pso";
  version = "1.8.1";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-s9FuwnsLTTazWzBq9AwAzQs05eCp4wpx7QJJDolUomo=";
  };

  propagatedBuildInputs = [
    miniful
    numpy
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [
    "fstpso"
  ];

  meta = with lib; {
    description = "Fuzzy Self-Tuning PSO global optimization library";
    homepage = "https://github.com/aresio/fst-pso";
    license = with licenses; [ lgpl3Only ];
    maintainers = with maintainers; [ fab ];
  };
}
+39 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, scipy
, pythonOlder
}:

buildPythonPackage rec {
  pname = "miniful";
  version = "0.0.6";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-ZCyfNrh8gbPvwplHN5tbmbjTMYXJBKe8Mg2JqOGHFCk=";
  };

  propagatedBuildInputs = [
    numpy
    scipy
  ];

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [
    "miniful"
  ];

  meta = with lib; {
    description = "Minimal Fuzzy Library";
    homepage = "https://github.com/aresio/miniful";
    license = with licenses; [ lgpl3Only ];
    maintainers = with maintainers; [ fab ];
  };
}
+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 ];
  };
}
+6 −0
Original line number Diff line number Diff line
@@ -3768,6 +3768,8 @@ self: super: with self; {

  fsspec = callPackage ../development/python-modules/fsspec { };

  fst-pso = callPackage ../development/python-modules/fst-pso { };

  ftfy = callPackage ../development/python-modules/ftfy { };

  ftputil = callPackage ../development/python-modules/ftputil { };
@@ -6112,6 +6114,8 @@ self: super: with self; {

  minidump = callPackage ../development/python-modules/minidump { };

  miniful = callPackage ../development/python-modules/miniful { };

  minikanren = callPackage ../development/python-modules/minikanren { };

  minikerberos = callPackage ../development/python-modules/minikerberos { };
@@ -10931,6 +10935,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 { };