567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
41 lines
948 B
Nix
41 lines
948 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
requests,
|
|
poetry-core,
|
|
keyring,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "deepl";
|
|
version = "1.25.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-nFvmNQVug6czSECorez9lixcuFV58hsVwQZD6dd8I4o=";
|
|
};
|
|
|
|
nativeBuildInputs = [ poetry-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
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${version}/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ MaskedBelgian ];
|
|
};
|
|
}
|