From 2b6b08f921a7024b82c644416df0d5dd6d156e70 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 1 May 2023 19:29:26 +0200 Subject: [PATCH] python310Packages.fuzzytm: init at 2.0.5 --- .../python-modules/fuzzytm/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/fuzzytm/default.nix diff --git a/pkgs/development/python-modules/fuzzytm/default.nix b/pkgs/development/python-modules/fuzzytm/default.nix new file mode 100644 index 000000000000..e7dae0d02ee1 --- /dev/null +++ b/pkgs/development/python-modules/fuzzytm/default.nix @@ -0,0 +1,46 @@ +{ lib +, buildPythonPackage +, fetchPypi +, gensim +, numpy +, pandas +, pyfume +, scipy +, pythonOlder +}: + +buildPythonPackage rec { + pname = "fuzzytm"; + version = "2.0.5"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + pname = "FuzzyTM"; + inherit version; + hash = "sha256-IELkjd3/yc2lBYsLP6mms9LEcXOfVtNNooEKCMf9BtU="; + }; + + propagatedBuildInputs = [ + gensim + numpy + pandas + pyfume + scipy + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "FuzzyTM" + ]; + + meta = with lib; { + description = "Library for Fuzzy Topic Models"; + homepage = "https://github.com/ERijck/FuzzyTM"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2b23cf7fa866..e95ce77cf00b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3804,6 +3804,8 @@ self: super: with self; { fuzzyfinder = callPackage ../development/python-modules/fuzzyfinder { }; + fuzzytm = callPackage ../development/python-modules/fuzzytm { }; + fuzzywuzzy = callPackage ../development/python-modules/fuzzywuzzy { }; fvs = callPackage ../development/python-modules/fvs { };