2021-12-07 13:20:30 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, beautifulsoup4, requests, click }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deep-translator";
|
2022-04-01 06:29:24 +01:00
|
|
|
version = "1.8.3";
|
2021-12-07 13:20:30 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-01 06:29:24 +01:00
|
|
|
sha256 = "sha256-9YTDvrm5Q8k5G7qDF05651IxMV1BeTcgIAMSxU/bwM0=";
|
2021-12-07 13:20:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|