blob: cf086082acd291a06d955e2e01f31a19f6a62bab (
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
|
{
lib,
buildPythonPackage,
fetchPypi,
requests,
poetry-core,
keyring,
}:
buildPythonPackage rec {
pname = "deepl";
version = "1.25.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-nFvmNQVug6czSECorez9lixcuFV58hsVwQZD6dd8I4o=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
requests
keyring
];
# Requires internet access and an API key
doCheck = false;
pythonImportsCheck = [ "deepl" ];
meta = {
description = "Language translation API that allows other computer programs to send texts and documents to DeepL's servers and receive high-quality translations";
mainProgram = "deepl";
homepage = "https://github.com/DeepLcom/deepl-python";
changelog = "https://github.com/DeepLcom/deepl-python/blob/v${version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ MaskedBelgian ];
};
}
|