2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pytest7CheckHook,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "razdel";
|
|
|
|
version = "0.5.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-QzTA/f401OiIzw7YVJaMnfFPClR9+Qmnf0Y0+f/mJuY=";
|
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
nativeCheckInputs = [ pytest7CheckHook ];
|
2023-10-09 19:29:22 +00:00
|
|
|
pytestFlagsArray = [ "razdel" ];
|
2024-01-02 11:29:13 +00:00
|
|
|
pythonImportsCheck = [ "razdel" ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Rule-based system for Russian sentence and word tokenization";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "razdel-ctl";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://github.com/natasha/razdel";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ npatsakula ];
|
|
|
|
};
|
|
|
|
}
|