1{ lib, buildPythonPackage, fetchFromGitHub, requests }:
2
3buildPythonPackage rec {
4 pname = "googletrans";
5 version = "2.4.0";
6
7 src = fetchFromGitHub {
8 owner = "ssut";
9 repo = "py-googletrans";
10 rev = "v${version}";
11 sha256 = "0wzzinn0k9rfv9z1gmfk9l4kljyd4n6kizsjw4wjxv91kfhj92hz";
12 };
13
14 propagatedBuildInputs = [ requests ];
15
16 # majority of tests just try to ping Google's Translate API endpoint
17 doCheck = false;
18
19 pythonImportsCheck = [ "googletrans" ];
20
21 meta = with lib; {
22 description = "Googletrans is python library to interact with Google Translate API";
23 homepage = "https://py-googletrans.readthedocs.io";
24 license = licenses.mit;
25 maintainers = with maintainers; [ unode ];
26 };
27}