depot/third_party/nixpkgs/pkgs/development/python-modules/razdel/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

27 lines
630 B
Nix

{ 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 ];
};
}