1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00
nixpkgs/pkgs/development/python-modules/gtts-token/default.nix
Martin Weinelt 19484b9f57 pythonPackages.gtts-token: 1.1.3 -> 1.1.4
Enable checkPhase for the offline calculation test, disable the online
test.
2020-11-11 14:54:46 -08:00

36 lines
725 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "gtts-token";
version = "1.1.4";
src = fetchFromGitHub {
owner = "boudewijn26";
repo = "gTTS-token";
rev = "v${version}";
sha256 = "0vr52zc0jqyfvsccl67j1baims3cdx2is1y2lpx2kav9gadkn8hp";
};
propagatedBuildInputs = [
requests
];
checkInputs = [ pytestCheckHook ];
# requires internet access
disabledTests = [ "test_real" ];
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;
maintainers = with maintainers; [ makefu ];
};
}