Files
nixpkgs/pkgs/development/python-modules/deep-translator/default.nix
T
Michael Daniels 075e8c2c4f treewide: change 'format = "pyproject";' to 'pyproject = true;'
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.
2026-01-12 17:50:35 -05:00

47 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
beautifulsoup4,
requests,
click,
poetry-core,
}:
buildPythonPackage rec {
pname = "deep-translator";
version = "1.11.4";
pyproject = true;
src = fetchPypi {
pname = "deep_translator";
inherit version;
hash = "sha256-gBJgxpIxE4cH6oiglV5ITbfUDiEMngrg93Ny/9pfS/U=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
beautifulsoup4
requests
click
];
# Initializing it during build won't work as it needs connection with
# APIs and the build environment is isolated (#148572 for details).
# After built, it works as intended.
#pythonImportsCheck = [ "deep_translator" ];
# Again, initializing an instance needs network connection.
# Tests will fail.
doCheck = false;
meta = {
description = "Python tool to translate between different languages by using multiple translators";
homepage = "https://deep-translator.readthedocs.io";
changelog = "https://github.com/nidhaloff/deep-translator/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = [ ];
};
}