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