Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d27c1f64f49e
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: aa54135d2cc9
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Jun 23, 2019

  1. python.pkgs.gtts-token: init at 1.1.3

    makefu authored and FRidh committed Jun 23, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    anthonyfok Anthony Fok
    Copy the full SHA
    536abf3 View commit details
  2. home-assistant: update component-packages

    adds gtts-token to google_translate component
    makefu authored and FRidh committed Jun 23, 2019
    Copy the full SHA
    aa54135 View commit details
Showing with 34 additions and 1 deletion.
  1. +31 −0 pkgs/development/python-modules/gtts-token/default.nix
  2. +1 −1 pkgs/servers/home-assistant/component-packages.nix
  3. +2 −0 pkgs/top-level/python-packages.nix
31 changes: 31 additions & 0 deletions pkgs/development/python-modules/gtts-token/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ lib
, buildPythonPackage
, fetchPypi
, requests
}:

buildPythonPackage rec {
pname = "gtts-token";
version = "1.1.3";

src = fetchPypi {
pname = "gTTS-token";
inherit version;
sha256 = "9d6819a85b813f235397ef931ad4b680f03d843c9b2a9e74dd95175a4bc012c5";
};

propagatedBuildInputs = [
requests
];

# Tests only in github repo, require working internet connection
doCheck = false;

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 = [ maintainers.makefu ];
};
}

2 changes: 1 addition & 1 deletion pkgs/servers/home-assistant/component-packages.nix
Original file line number Diff line number Diff line change
@@ -259,7 +259,7 @@
"google_domains" = ps: with ps; [ ];
"google_maps" = ps: with ps; [ ];
"google_pubsub" = ps: with ps; [ google_cloud_pubsub ];
"google_translate" = ps: with ps; [ ];
"google_translate" = ps: with ps; [ gtts-token ];
"google_travel_time" = ps: with ps; [ ];
"google_wifi" = ps: with ps; [ ];
"googlehome" = ps: with ps; [ ];
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -3002,6 +3002,8 @@ in {

gspread = callPackage ../development/python-modules/gspread { };

gtts-token = callPackage ../development/python-modules/gtts-token { };

gym = callPackage ../development/python-modules/gym { };

gyp = callPackage ../development/python-modules/gyp { };