3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/deep-translator/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
993 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchPypi, beautifulsoup4, requests, click }:
buildPythonPackage rec {
pname = "deep-translator";
2022-03-15 05:07:10 +00:00
version = "1.8.1";
src = fetchPypi {
inherit pname version;
2022-03-15 05:07:10 +00:00
sha256 = "sha256-Oi5dzrC19PnlExCOgu+bT5n3/XwgJkDirzl8ra8w7Nw=";
};
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 ];
};
}