pythonPackages.googletrans: cleanup

This commit is contained in:
Sandro Jäckel 2021-01-05 12:09:14 +01:00
parent 2c1b526fad
commit e976a92b6e
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchFromGitHub, requests, pytest, coveralls }: { lib, buildPythonPackage, fetchFromGitHub, requests }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "googletrans"; pname = "googletrans";
@ -11,17 +11,10 @@ buildPythonPackage rec {
sha256 = "0wzzinn0k9rfv9z1gmfk9l4kljyd4n6kizsjw4wjxv91kfhj92hz"; sha256 = "0wzzinn0k9rfv9z1gmfk9l4kljyd4n6kizsjw4wjxv91kfhj92hz";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [ requests ];
requests
];
checkInputs = [ pytest coveralls ];
# majority of tests just try to ping Google's Translate API endpoint # majority of tests just try to ping Google's Translate API endpoint
doCheck = false; doCheck = false;
checkPhase = ''
pytest
'';
pythonImportsCheck = [ "googletrans" ]; pythonImportsCheck = [ "googletrans" ];