From beb04c41e11ab666fcbbb74aa831375449cc4f22 Mon Sep 17 00:00:00 2001 From: Himadri Bhattacharjee <107522312+lavafroth@users.noreply.github.com> Date: Wed, 18 Dec 2024 17:54:19 +0530 Subject: [PATCH] python3Packages.stop-words: init at 2018.7.23 --- .../python-modules/stop-words/default.nix | 31 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 33 insertions(+) create mode 100644 pkgs/development/python-modules/stop-words/default.nix diff --git a/pkgs/development/python-modules/stop-words/default.nix b/pkgs/development/python-modules/stop-words/default.nix new file mode 100644 index 000000000000..ead093cd5622 --- /dev/null +++ b/pkgs/development/python-modules/stop-words/default.nix @@ -0,0 +1,31 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + unittestCheckHook, +}: + +buildPythonPackage rec { + pname = "stop-words"; + version = "2018.7.23"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-bfOtX13ml9qkN+REXIbHNgTmvBON0NwPrFVmSqTmsD4="; + }; + + build-system = [ setuptools ]; + + nativeCheckInputs = [ unittestCheckHook ]; + + pythonImportsCheck = [ "stop_words" ]; + + meta = { + description = "Get list of common stop words in various languages in Python"; + homepage = "https://github.com/Alir3z4/python-stop-words"; + license = [ lib.licenses.bsd3 ]; + maintainers = with lib.maintainers; [ lavafroth ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 39b8b28be828..cfce4848d054 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14779,6 +14779,8 @@ self: super: with self; { stopit = callPackage ../development/python-modules/stopit { }; + stop-words = callPackage ../development/python-modules/stop-words { }; + stransi = callPackage ../development/python-modules/stransi { }; strategies = callPackage ../development/python-modules/strategies { };