Files
nixpkgs/pkgs/development/python-modules/gtts/default.nix
T
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

65 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
beautifulsoup4,
click,
gtts-token,
mock,
pytest,
requests,
six,
testfixtures,
twine,
urllib3,
}:
buildPythonPackage rec {
pname = "gtts";
version = "2.5.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "pndurette";
repo = "gTTS";
rev = "refs/tags/v${version}";
hash = "sha256-CCxD73fpHGsO4zSifWLQtgDkbPvPEnA2357umhOCNoI=";
};
build-system = [ setuptools ];
dependencies = [
beautifulsoup4
click
gtts-token
requests
six
urllib3
twine
];
nativeCheckInputs = [
pytest
mock
testfixtures
];
# majority of tests just try to call out to Google's Translate API endpoint
doCheck = false;
checkPhase = ''
pytest
'';
pythonImportsCheck = [ "gtts" ];
meta = with lib; {
description = "Python library and CLI tool to interface with Google Translate text-to-speech API";
mainProgram = "gtts-cli";
homepage = "https://gtts.readthedocs.io";
changelog = "https://gtts.readthedocs.io/en/latest/changelog.html";
license = licenses.mit;
maintainers = with maintainers; [ unode ];
};
}