depot/third_party/nixpkgs/pkgs/development/python-modules/deep-translator/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

49 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
beautifulsoup4,
requests,
click,
pythonOlder,
poetry-core,
}:
buildPythonPackage rec {
pname = "deep-translator";
version = "1.11.4";
format = "pyproject";
disabled = pythonOlder "3.7";
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 = with lib; {
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 = licenses.asl20;
maintainers = with maintainers; [ wolfangaukang ];
};
}