blob: 596ae5dc7f60c7f1fcf1906ffbcead0a369ba430 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{
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 = {
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ unode ];
mainProgram = "translate";
};
}
|