Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / deepl / default.nix
blobaa4a0b2ed1e5e4862d03b7de40f913caa832d2d1
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , requests
5 , poetry-core
6 , keyring
7 }:
9 buildPythonPackage rec {
10   pname = "deepl";
11   version = "1.17.0";
12   format = "pyproject";
14   src = fetchPypi {
15     inherit pname version;
16     hash = "sha256-IwBKgkfXXYAgat7E4pAS5f9UNOmY9yRj4ZP85wSt4cs=";
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     mainProgram = "deepl";
38     homepage = "https://github.com/DeepLcom/deepl-python";
39     changelog = "https://github.com/DeepLcom/deepl-python/blob/v${version}/CHANGELOG.md";
40     license = licenses.mit;
41     maintainers = with maintainers; [ MaskedBelgian ];
42   };