1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, requests 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "gtts-token"; 10 version = "1.1.4"; 11 12 src = fetchFromGitHub { 13 owner = "boudewijn26"; 14 repo = "gTTS-token"; 15 rev = "v${version}"; 16 sha256 = "0vr52zc0jqyfvsccl67j1baims3cdx2is1y2lpx2kav9gadkn8hp"; 17 }; 18 19 propagatedBuildInputs = [ 20 requests 21 ]; 22 23 checkInputs = [ pytestCheckHook ]; 24 25 # requires internet access 26 disabledTests = [ "test_real" ]; 27 28 meta = with lib; { 29 description = "Calculates a token to run the Google Translate text to speech"; 30 homepage = "https://github.com/boudewijn26/gTTS-token"; 31 license = licenses.mit; 32 maintainers = with maintainers; [ makefu ]; 33 }; 34} 35