blob: 9ffb4bcdedae614edfea34239a70f7c559bac534 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ lib
, fetchPypi
, buildPythonPackage
, isPy3k
, requests
, flake8
, mock
, pytest
, mystem
}:
buildPythonPackage rec {
pname = "pymystem3";
version = "0.2.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "15gv78m17g958gfka6rr3rg230g6b5ssgk8bfpsp7k2iajhxdbhs";
};
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [ flake8 mock pytest ];
doCheck = isPy3k; # fails on linting
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 ];
};
}
|