075e8c2c4f
This is almost all find-and-replace. I manually edited: * pkgs/development/python-modules/notifications-android-tv/default.nix, * pkgs/servers/home-assistant/default.nix, * pkgs/development/tools/continuous-integration/buildbot/master.nix A few files have not been changed in this PR because they would cause rebuilds. This PR should have 0 rebuilds.
41 lines
944 B
Nix
41 lines
944 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
requests,
|
|
poetry-core,
|
|
keyring,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "deepl";
|
|
version = "1.25.0";
|
|
pyproject = true;
|
|
|
|
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 ];
|
|
};
|
|
}
|