python313Packages.googletrans: 4.0.0 -> 4.0.2

This commit is contained in:
Fabian Affolter
2025-03-07 22:45:20 +01:00
parent 3f7aa85c3e
commit ac0a4b98f0

View File

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