depot/third_party/nixpkgs/pkgs/development/python-modules/deep-translator/default.nix
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

44 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, fetchPypi
, beautifulsoup4
, requests
, click
, pythonOlder
}:
buildPythonPackage rec {
pname = "deep-translator";
version = "1.9.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-7VsEN6t9c0FMw0zHWnxnIyilQmQ127rXEfLrAYatKEc=";
};
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/v1.10.0";
license = licenses.asl20;
maintainers = with maintainers; [ wolfangaukang ];
};
}