2969ca571a
GitOrigin-RevId: 257cbbcd3ab7bd96f5d24d50adc807de7c82e06d
27 lines
727 B
Nix
27 lines
727 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, requests }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "googletrans";
|
|
version = "2.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ssut";
|
|
repo = "py-googletrans";
|
|
rev = "v${version}";
|
|
sha256 = "0wzzinn0k9rfv9z1gmfk9l4kljyd4n6kizsjw4wjxv91kfhj92hz";
|
|
};
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
# majority of tests just try to ping Google's Translate API endpoint
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "googletrans" ];
|
|
|
|
meta = with lib; {
|
|
description = "Googletrans is python library to interact with Google Translate API";
|
|
homepage = "https://py-googletrans.readthedocs.io";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ unode ];
|
|
};
|
|
}
|