blob: 243d08fb9678b8a8f3a934980a9f06b5b81023f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{
lib,
buildPythonPackage,
fetchPypi,
beautifulsoup4,
requests,
click,
poetry-core,
}:
buildPythonPackage rec {
pname = "deep-translator";
version = "1.11.4";
pyproject = true;
src = fetchPypi {
pname = "deep_translator";
inherit version;
hash = "sha256-gBJgxpIxE4cH6oiglV5ITbfUDiEMngrg93Ny/9pfS/U=";
};
nativeBuildInputs = [ poetry-core ];
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 = {
description = "Python tool to translate between different languages by using multiple translators";
homepage = "https://deep-translator.readthedocs.io";
changelog = "https://github.com/nidhaloff/deep-translator/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = [ ];
};
}
|