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