diff options
author | P. R. d. O <d.ol.rod@protonmail.com> | 2021-12-07 07:20:30 -0600 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-12-09 19:34:13 -0800 |
commit | f6506072b598a0d2dcea77cdc5aa4011fd58163c (patch) | |
tree | 5222017cb7f671395804d5013fdb22f93b4c9071 /pkgs/development/python-modules/deep-translator | |
parent | 3f01341c8a9250c771a3b76eb458ba3ae346b3f9 (diff) |
python38Packages.deep-translator: init at 1.5.5
Diffstat (limited to 'pkgs/development/python-modules/deep-translator')
-rw-r--r-- | pkgs/development/python-modules/deep-translator/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/deep-translator/default.nix b/pkgs/development/python-modules/deep-translator/default.nix new file mode 100644 index 0000000000000..a91c02a2bf3e7 --- /dev/null +++ b/pkgs/development/python-modules/deep-translator/default.nix @@ -0,0 +1,33 @@ +{ lib, buildPythonPackage, fetchPypi, beautifulsoup4, requests, click }: + +buildPythonPackage rec { + pname = "deep-translator"; + version = "1.5.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-XARhzRsquvKcdhPcooGIEmhGN7QJOCubcvOrZB0nhxU="; + }; + + propagatedBuildInputs = [ + beautifulsoup4 + requests + click + ]; + + # Initializing it during build won't work as it needs connection with + # APIs and the build environment is isolated (#148572 for details). + # After built, it works as intended. + #pythonImportsCheck = [ "deep_translator" ]; + + # Again, initializing an instance needs network connection. + # Tests will fail. + doCheck = false; + + meta = with lib; { + description = "Flexible, free and unlimited Python tool to translate between different languages in a simple way using multiple translators"; + homepage = "https://deep-translator.readthedocs.io"; + license = licenses.mit; + maintainers = with maintainers; [ wolfangaukang ]; + }; +} |