2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
requests,
|
|
|
|
poetry-core,
|
|
|
|
keyring,
|
2023-04-12 12:48:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "deepl";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.18.0";
|
2023-04-12 12:48:02 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-WuQXY5OUQe28p2QP00QoDL7kfUkGQc41IGkQqLAed44=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
|
|
|
keyring
|
|
|
|
];
|
|
|
|
|
|
|
|
# Requires internet access and an API key
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "deepl" ];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Language translation API that allows other computer programs to send texts and documents to DeepL's servers and receive high-quality translations";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "deepl";
|
2023-04-12 12:48:02 +00:00
|
|
|
homepage = "https://github.com/DeepLcom/deepl-python";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/DeepLcom/deepl-python/blob/v${version}/CHANGELOG.md";
|
2023-04-12 12:48:02 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ MaskedBelgian ];
|
|
|
|
};
|
|
|
|
}
|