lol

pythonPackages.gtts-token: 1.1.3 -> 1.1.4

Enable checkPhase for the offline calculation test, disable the online
test.

authored by

Martin Weinelt and committed by
Jonathan Ringer
19484b9f aec6a806

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