pythonPackages.googletrans: init at 2.4.0
This commit is contained in:
parent
d7266d00b2
commit
e30abffb66
34
pkgs/development/python-modules/googletrans/default.nix
Normal file
34
pkgs/development/python-modules/googletrans/default.nix
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{ lib, buildPythonPackage, fetchFromGitHub, requests, pytest, coveralls }:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "googletrans";
|
||||||
|
version = "2.4.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ssut";
|
||||||
|
repo = "py-googletrans";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "0wzzinn0k9rfv9z1gmfk9l4kljyd4n6kizsjw4wjxv91kfhj92hz";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [ pytest coveralls ];
|
||||||
|
|
||||||
|
# majority of tests just try to ping Google's Translate API endpoint
|
||||||
|
doCheck = false;
|
||||||
|
checkPhase = ''
|
||||||
|
pytest
|
||||||
|
'';
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -2739,6 +2739,8 @@ in {
|
|||||||
|
|
||||||
google-pasta = callPackage ../development/python-modules/google-pasta { };
|
google-pasta = callPackage ../development/python-modules/google-pasta { };
|
||||||
|
|
||||||
|
googletrans = callPackage ../development/python-modules/googletrans { };
|
||||||
|
|
||||||
gpapi = callPackage ../development/python-modules/gpapi { };
|
gpapi = callPackage ../development/python-modules/gpapi { };
|
||||||
gplaycli = callPackage ../development/python-modules/gplaycli { };
|
gplaycli = callPackage ../development/python-modules/gplaycli { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user