about summary refs log tree commit diff
path: root/pkgs/development/python-modules/navec/default.nix
blob: e5712212eb698ff13cd0f5c403d7ae8073d9a948 (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
{ lib
, buildPythonPackage
, fetchPypi
, numpy
, razdel
, gensim
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "navec";
  version = "0.10.0";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-TyNHSxwnmvbGBfhOeHPofEfKWLDFOKP50w2QxgnJ/SE=";
  };

  propagatedBuildInputs = [ numpy razdel ];
  nativeCheckInputs = [ pytestCheckHook gensim ];
  # TODO: remove when gensim usage will be fixed in `navec`.
  disabledTests = [ "test_gensim" ];
  pythonImportsCheck = [ "navec" ];

  meta = with lib; {
    description = "Compact high quality word embeddings for Russian language";
    mainProgram = "navec-train";
    homepage = "https://github.com/natasha/navec";
    license = licenses.mit;
    maintainers = with maintainers; [ npatsakula ];
  };
}