aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/gtts-token/default.nix
blob: f3325aab8e6ea37ae70eeae43d301ceffbdce7d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ 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 ];
  };
}