mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-27 08:20:13 +00:00
41 lines
964 B
Nix
41 lines
964 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
requests,
|
|
poetry-core,
|
|
keyring,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "deepl";
|
|
version = "1.33.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit (finalAttrs) pname version;
|
|
hash = "sha256-3ewzD8e2F0BhMf7YETf9O7Q9G64D7L1IyLjpy1hR4wM=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
requests
|
|
keyring
|
|
];
|
|
|
|
# Requires internet access and an API key
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "deepl" ];
|
|
|
|
meta = {
|
|
description = "Language translation API that allows other computer programs to send texts and documents to DeepL's servers and receive high-quality translations";
|
|
mainProgram = "deepl";
|
|
homepage = "https://github.com/DeepLcom/deepl-python";
|
|
changelog = "https://github.com/DeepLcom/deepl-python/blob/v${finalAttrs.version}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ MaskedBelgian ];
|
|
};
|
|
})
|