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