depot/third_party/nixpkgs/pkgs/development/python-modules/deepl/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

40 lines
950 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
requests,
poetry-core,
keyring,
}:
buildPythonPackage rec {
pname = "deepl";
version = "1.18.0";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-WuQXY5OUQe28p2QP00QoDL7kfUkGQc41IGkQqLAed44=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
requests
keyring
];
# Requires internet access and an API key
doCheck = false;
pythonImportsCheck = [ "deepl" ];
meta = with lib; {
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 = licenses.mit;
maintainers = with maintainers; [ MaskedBelgian ];
};
}