Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 requests, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "gtts-token"; 11 version = "1.1.4"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "boudewijn26"; 16 repo = "gTTS-token"; 17 rev = "v${version}"; 18 sha256 = "0vr52zc0jqyfvsccl67j1baims3cdx2is1y2lpx2kav9gadkn8hp"; 19 }; 20 21 propagatedBuildInputs = [ requests ]; 22 23 nativeCheckInputs = [ 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}