504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
42 lines
929 B
Nix
42 lines
929 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, requests
|
|
, poetry-core
|
|
, keyring
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "deepl";
|
|
version = "1.16.1";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-s01KhkTJ5ip6nCSs/oCgdxe9Cjsr53tjOhDV1P50jc0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
keyring
|
|
];
|
|
|
|
# Requires internet access and an API key
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"deepl"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A language translation API that allows other computer programs to send texts and documents to DeepL's servers and receive high-quality translations";
|
|
homepage = "https://github.com/DeepLcom/deepl-python";
|
|
changelog = "https://github.com/DeepLcom/deepl-python/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ MaskedBelgian ];
|
|
};
|
|
}
|