1{ lib
2, buildPythonPackage
3, fetchPypi
4, numpy
5, razdel
6, navec
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "slovnet";
12 version = "0.6.0";
13 format = "setuptools";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-AtIle9ybnMHSQr007iyGHGSPcIPveJj+FGirzDge95k=";
18 };
19
20 propagatedBuildInputs = [ numpy navec razdel ];
21 nativeCheckInputs = [ pytestCheckHook ];
22 pytestFlagsArray = [ "tests/" ];
23 disabledTestPaths = [
24 # Tries to download model binary artifacts:
25 "tests/test_api.py"
26 ];
27 pythonImportCheck = [ "slovnet" ];
28
29 meta = with lib; {
30 description = "Deep-learning based NLP modeling for Russian language";
31 homepage = "https://github.com/natasha/slovnet";
32 license = licenses.mit;
33 maintainers = with maintainers; [ npatsakula ];
34 };
35}