1{ lib
2, buildPythonPackage
3, fetchPypi
4, requests
5, poetry-core
6, keyring
7}:
8
9buildPythonPackage rec {
10 pname = "deepl";
11 version = "1.14.0";
12 format = "pyproject";
13
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-jUHxyx+b1OICJHAs8lh5NVtl+MExyEYM/yfs2qz6fv4=";
17 };
18
19 nativeBuildInputs = [
20 poetry-core
21 ];
22
23 propagatedBuildInputs = [
24 requests
25 keyring
26 ];
27
28 # Requires internet access and an API key
29 doCheck = false;
30
31 pythonImportsCheck = [
32 "deepl"
33 ];
34
35 meta = with lib; {
36 description = "A language translation API that allows other computer programs to send texts and documents to DeepL's servers and receive high-quality translations";
37 homepage = "https://github.com/DeepLcom/deepl-python";
38 changelog = "https://github.com/DeepLcom/deepl-python/blob/v${version}/CHANGELOG.md";
39 license = licenses.mit;
40 maintainers = with maintainers; [ MaskedBelgian ];
41 };
42}