1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "razdel";
9 version = "0.5.0";
10 format = "setuptools";
11
12 src = fetchPypi {
13 inherit pname version;
14 hash = "sha256-QzTA/f401OiIzw7YVJaMnfFPClR9+Qmnf0Y0+f/mJuY=";
15 };
16
17 nativeCheckInputs = [ pytestCheckHook ];
18 pytestFlagsArray = [ "razdel" ];
19 pythonImportCheck = [ "razdel" ];
20
21 meta = with lib; {
22 description = "Rule-based system for Russian sentence and word tokenization";
23 homepage = "https://github.com/natasha/razdel";
24 license = licenses.mit;
25 maintainers = with maintainers; [ npatsakula ];
26 };
27}