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