Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 33 lines 765 B view raw
1{ lib 2, fetchPypi 3, buildPythonPackage 4, requests 5, flake8 6, mock 7, pytest 8, mystem 9}: 10 11buildPythonPackage rec { 12 pname = "pymystem3"; 13 version = "0.2.0"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "15gv78m17g958gfka6rr3rg230g6b5ssgk8bfpsp7k2iajhxdbhs"; 18 }; 19 20 propagatedBuildInputs = [ requests ]; 21 checkInputs = [ flake8 mock pytest ]; 22 23 postPatch = '' 24 sed -i 's#^_mystem_info = .*#_mystem_info = ["${mystem}/bin", "${mystem}/bin/mystem"]#' pymystem3/constants.py 25 ''; 26 27 meta = with lib; { 28 description = "Python wrapper for the Yandex MyStem 3.1 morpholocial analyzer of the Russian language"; 29 homepage = https://github.com/nlpub/pymystem3; 30 license = licenses.mit; 31 maintainers = with maintainers; [ abbradar ]; 32 }; 33}