about summary refs log tree commit diff
path: root/pkgs/development/python-modules/slovnet/default.nix
blob: 83f431a6a8c5be749de39cbeabb6874f37600bb0 (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
28
29
30
31
32
33
34
35
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, razdel
, navec
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "slovnet";
  version = "0.6.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-AtIle9ybnMHSQr007iyGHGSPcIPveJj+FGirzDge95k=";
  };

  propagatedBuildInputs = [ numpy navec razdel ];
  nativeCheckInputs = [ pytestCheckHook ];
  pytestFlagsArray = [ "tests/" ];
  disabledTestPaths = [
    # Tries to download model binary artifacts:
    "tests/test_api.py"
  ];
  pythonImportCheck = [ "slovnet" ];

  meta = with lib; {
    description = "Deep-learning based NLP modeling for Russian language";
    homepage = "https://github.com/natasha/slovnet";
    license = licenses.mit;
    maintainers = with maintainers; [ npatsakula ];
  };
}