1{ lib 2, buildPythonPackage 3, fetchPypi 4, beautifulsoup4 5, requests 6, click 7, pythonOlder 8, poetry-core 9}: 10 11buildPythonPackage rec { 12 pname = "deep-translator"; 13 version = "1.11.4"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 pname = "deep_translator"; 20 inherit version; 21 hash = "sha256-gBJgxpIxE4cH6oiglV5ITbfUDiEMngrg93Ny/9pfS/U="; 22 }; 23 24 nativeBuildInputs = [ 25 poetry-core 26 ]; 27 28 propagatedBuildInputs = [ 29 beautifulsoup4 30 requests 31 click 32 ]; 33 34 # Initializing it during build won't work as it needs connection with 35 # APIs and the build environment is isolated (#148572 for details). 36 # After built, it works as intended. 37 #pythonImportsCheck = [ "deep_translator" ]; 38 39 # Again, initializing an instance needs network connection. 40 # Tests will fail. 41 doCheck = false; 42 43 meta = with lib; { 44 description = "Python tool to translate between different languages by using multiple translators"; 45 homepage = "https://deep-translator.readthedocs.io"; 46 changelog = "https://github.com/nidhaloff/deep-translator/releases/tag/v${version}"; 47 license = licenses.asl20; 48 maintainers = with maintainers; [ wolfangaukang ]; 49 }; 50}