nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 67 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 beautifulsoup4, 7 click, 8 gtts-token, 9 mock, 10 pytest, 11 requests, 12 six, 13 testfixtures, 14 twine, 15 urllib3, 16}: 17 18buildPythonPackage rec { 19 pname = "gtts"; 20 version = "2.5.4"; 21 pyproject = true; 22 23 src = fetchFromGitHub { 24 owner = "pndurette"; 25 repo = "gTTS"; 26 tag = "v${version}"; 27 hash = "sha256-ryTR7cESDO9pH5r2FBz+6JuNMEQr39hil/FSklgaIGg="; 28 }; 29 30 build-system = [ setuptools ]; 31 32 pythonRelaxDeps = [ 33 "click" 34 ]; 35 dependencies = [ 36 beautifulsoup4 37 click 38 gtts-token 39 requests 40 six 41 urllib3 42 twine 43 ]; 44 45 nativeCheckInputs = [ 46 pytest 47 mock 48 testfixtures 49 ]; 50 51 # majority of tests just try to call out to Google's Translate API endpoint 52 doCheck = false; 53 checkPhase = '' 54 pytest 55 ''; 56 57 pythonImportsCheck = [ "gtts" ]; 58 59 meta = { 60 description = "Python library and CLI tool to interface with Google Translate text-to-speech API"; 61 mainProgram = "gtts-cli"; 62 homepage = "https://gtts.readthedocs.io"; 63 changelog = "https://gtts.readthedocs.io/en/latest/changelog.html"; 64 license = lib.licenses.mit; 65 maintainers = with lib.maintainers; [ unode ]; 66 }; 67}