Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / deepl / default.nix
blobbc674c3bf6f004fd0998074e8c06a654bb56eb40
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , requests
5 , poetry-core
6 , keyring
7 }:
9 buildPythonPackage rec {
10   pname = "deepl";
11   version = "1.15.0";
12   format = "pyproject";
14   src = fetchPypi {
15     inherit pname version;
16     hash = "sha256-BRFC4R5d1gxHyEJI41Fi0Az8GqmDG7mQ6Fx/o23OGcE=";
17   };
19   nativeBuildInputs = [
20     poetry-core
21   ];
23   propagatedBuildInputs = [
24     requests
25     keyring
26   ];
28   # Requires internet access and an API key
29   doCheck = false;
31   pythonImportsCheck = [
32     "deepl"
33   ];
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   };