about summary refs log tree commit diff
path: root/pkgs/development/python-modules/razdel/default.nix
blob: 66c2f4fae5e2361bdfd01a8871ebd45b0eeedcd2 (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
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "razdel";
  version = "0.5.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-QzTA/f401OiIzw7YVJaMnfFPClR9+Qmnf0Y0+f/mJuY=";
  };

  nativeCheckInputs = [ pytestCheckHook ];
  pytestFlagsArray = [ "razdel" ];
  pythonImportsCheck = [ "razdel" ];

  meta = with lib; {
    description = "Rule-based system for Russian sentence and word tokenization";
    homepage = "https://github.com/natasha/razdel";
    license = licenses.mit;
    maintainers = with maintainers; [ npatsakula ];
  };
}