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