Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

37 lines
854 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hatchling,
httpx,
}:
buildPythonPackage rec {
pname = "googletrans";
version = "4.0.2";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-2e8Sa12S+r7sC7ndzb7s1Dhl/ADhfx36B3F4N4J6F94=";
};
build-system = [ hatchling ];
dependencies = [ httpx ] ++ httpx.optional-dependencies.http2;
# Majority of tests just try to ping Google's Translate API endpoint
doCheck = false;
pythonImportsCheck = [ "googletrans" ];
meta = with lib; {
description = "Library to interact with Google Translate API";
homepage = "https://py-googletrans.readthedocs.io";
changelog = "https://github.com/ssut/py-googletrans/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ unode ];
mainProgram = "translate";
};
}