diff options
author | Nikolay Amiantov <ab@fmap.me> | 2019-06-06 11:44:15 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2019-06-06 20:26:36 +0300 |
commit | 394626f9d91cc56be525012747547e9b6682b016 (patch) | |
tree | 3cd78607d816e0399f2998471f08d2a11bd80805 /pkgs/development/python-modules/pymystem3 | |
parent | 16492f9815c375376f7e67fb619294a7b58278aa (diff) |
python3.pkgs.pymystem3: init at 0.2.0
Diffstat (limited to 'pkgs/development/python-modules/pymystem3')
-rw-r--r-- | pkgs/development/python-modules/pymystem3/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pymystem3/default.nix b/pkgs/development/python-modules/pymystem3/default.nix new file mode 100644 index 0000000000000..5311d98175286 --- /dev/null +++ b/pkgs/development/python-modules/pymystem3/default.nix @@ -0,0 +1,33 @@ +{ lib +, fetchPypi +, buildPythonPackage +, requests +, flake8 +, mock +, pytest +, mystem +}: + +buildPythonPackage rec { + pname = "pymystem3"; + version = "0.2.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "15gv78m17g958gfka6rr3rg230g6b5ssgk8bfpsp7k2iajhxdbhs"; + }; + + propagatedBuildInputs = [ requests ]; + checkInputs = [ flake8 mock pytest ]; + + postPatch = '' + sed -i 's#^_mystem_info = .*#_mystem_info = ["${mystem}/bin", "${mystem}/bin/mystem"]#' pymystem3/constants.py + ''; + + meta = with lib; { + description = "Python wrapper for the Yandex MyStem 3.1 morpholocial analyzer of the Russian language"; + homepage = https://github.com/nlpub/pymystem3; + license = licenses.mit; + maintainers = with maintainers; [ abbradar ]; + }; +} |