diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/slovnet/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/slovnet/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/slovnet/default.nix b/nixpkgs/pkgs/development/python-modules/slovnet/default.nix new file mode 100644 index 000000000000..83f431a6a8c5 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/slovnet/default.nix @@ -0,0 +1,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 ]; + }; +} |