567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
35 lines
754 B
Nix
35 lines
754 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
requests,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "gtts-token";
|
|
version = "1.1.4";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "boudewijn26";
|
|
repo = "gTTS-token";
|
|
rev = "v${version}";
|
|
sha256 = "0vr52zc0jqyfvsccl67j1baims3cdx2is1y2lpx2kav9gadkn8hp";
|
|
};
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
# requires internet access
|
|
disabledTests = [ "test_real" ];
|
|
|
|
meta = {
|
|
description = "Calculates a token to run the Google Translate text to speech";
|
|
homepage = "https://github.com/boudewijn26/gTTS-token";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ makefu ];
|
|
};
|
|
}
|