1{ lib, buildPythonPackage, fetchPypi, beautifulsoup4, requests, click }: 2 3buildPythonPackage rec { 4 pname = "deep-translator"; 5 version = "1.9.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "sha256-goLc/4BbVKUkH+csggKm6EKHmRVbv4i0Aq7N+/5WnmU="; 10 }; 11 12 propagatedBuildInputs = [ 13 beautifulsoup4 14 requests 15 click 16 ]; 17 18 # Initializing it during build won't work as it needs connection with 19 # APIs and the build environment is isolated (#148572 for details). 20 # After built, it works as intended. 21 #pythonImportsCheck = [ "deep_translator" ]; 22 23 # Again, initializing an instance needs network connection. 24 # Tests will fail. 25 doCheck = false; 26 27 meta = with lib; { 28 description = "Flexible, free and unlimited Python tool to translate between different languages in a simple way using multiple translators"; 29 homepage = "https://deep-translator.readthedocs.io"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ wolfangaukang ]; 32 }; 33}