nixpkgs/pkgs/development/python-modules/gtts-token/default.nix

36 lines
725 B
Nix
Raw Normal View History

2019-06-04 09:34:37 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
2019-06-04 09:34:37 +00:00
, requests
, pytestCheckHook
2019-06-04 09:34:37 +00:00
}:
buildPythonPackage rec {
pname = "gtts-token";
version = "1.1.4";
2019-06-04 09:34:37 +00:00
src = fetchFromGitHub {
owner = "boudewijn26";
repo = "gTTS-token";
rev = "v${version}";
sha256 = "0vr52zc0jqyfvsccl67j1baims3cdx2is1y2lpx2kav9gadkn8hp";
2019-06-04 09:34:37 +00:00
};
propagatedBuildInputs = [
requests
];
checkInputs = [ pytestCheckHook ];
# requires internet access
disabledTests = [ "test_real" ];
2019-06-04 09:34:37 +00:00
meta = with lib; {
description = "Calculates a token to run the Google Translate text to speech";
homepage = "https://github.com/boudewijn26/gTTS-token";
2019-06-04 09:34:37 +00:00
license = licenses.mit;
maintainers = with maintainers; [ makefu ];
2019-06-04 09:34:37 +00:00
};
}