depot/third_party/nixpkgs/pkgs/development/python-modules/slovnet/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

35 lines
802 B
Nix

{ 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"
];
pythonImportsCheck = [ "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 ];
};
}