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