depot/third_party/nixpkgs/pkgs/development/python-modules/deepl/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

43 lines
956 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 = "A 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 ];
};
}