{ lib, buildPythonPackage, httpx, fetchFromGitHub, requests, pytest, coveralls }: buildPythonPackage rec { pname = "googletrans"; version = "2020-08-02"; src = fetchFromGitHub { owner = "ssut"; repo = "py-googletrans"; rev = "4f7c079"; sha256 = "0jj3a1bhq88x4lg32xch0kna8i88wkrywywmm3ic81zvlb6yyipk"; }; propagatedBuildInputs = [ requests httpx ]; prePatch = '' sed -i 's/==/>=/' setup.py ''; 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 ]; }; }