2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pymorphy2,
|
|
|
|
pytestCheckHook,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "yargy";
|
|
|
|
version = "0.16.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-yRfu+zKkDCPEa2yojWiScHLdAKuU6Q/V3GqwpitZtZM=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pymorphy2 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
pythonImportsCheck = [ "yargy" ];
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pytestFlagsArray = [ "tests" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Rule-based facts extraction for Russian language";
|
|
|
|
homepage = "https://github.com/natasha/yargu";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ npatsakula ];
|
|
|
|
};
|
|
|
|
}
|