pythonPackages.gtts-token: 1.1.3 -> 1.1.4
Enable checkPhase for the offline calculation test, disable the online test.
This commit is contained in:
parent
aec6a8069f
commit
19484b9f57
|
@ -1,31 +1,35 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, requests
|
, requests
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "gtts-token";
|
pname = "gtts-token";
|
||||||
version = "1.1.3";
|
version = "1.1.4";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
pname = "gTTS-token";
|
owner = "boudewijn26";
|
||||||
inherit version;
|
repo = "gTTS-token";
|
||||||
sha256 = "9d6819a85b813f235397ef931ad4b680f03d843c9b2a9e74dd95175a4bc012c5";
|
rev = "v${version}";
|
||||||
|
sha256 = "0vr52zc0jqyfvsccl67j1baims3cdx2is1y2lpx2kav9gadkn8hp";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
requests
|
requests
|
||||||
];
|
];
|
||||||
|
|
||||||
# Tests only in github repo, require working internet connection
|
checkInputs = [ pytestCheckHook ];
|
||||||
doCheck = false;
|
|
||||||
|
# requires internet access
|
||||||
|
disabledTests = [ "test_real" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Calculates a token to run the Google Translate text to speech";
|
description = "Calculates a token to run the Google Translate text to speech";
|
||||||
homepage = "https://github.com/boudewijn26/gTTS-token";
|
homepage = "https://github.com/boudewijn26/gTTS-token";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ maintainers.makefu ];
|
maintainers = with maintainers; [ makefu ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue