Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

google-cloud-speech: init at 0.30.0 #32890

Merged
merged 7 commits into from Dec 28, 2017
Merged

Conversation

vanschelven
Copy link
Contributor

Motivation for this change

Google Cloud Speech API enables developers to convert audio to text;
The provided package is the Python client.

Things done

pkgs/development/python-modules/google_cloud_speech/default.nix is the actual goal of the present commit; the other packages are required dependencies.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Copy link
Member

@FRidh FRidh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note the comments I made apply to all expressions.

};

propagatedBuildInputs = [ google_auth protobuf googleapis_common_protos requests grpcio ];
buildInputs = [ setuptools mock pytest ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checkInputs


meta = {
description = "This library is not meant to stand-alone. Instead it defines common helpers used by all Google API clients.";
license = "apache";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which specifically? Use lib.licences

meta = {
description = "This library is not meant to stand-alone. Instead it defines common helpers used by all Google API clients.";
license = "apache";
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maintainer?

meta = {
description = "This library is not meant to stand-alone. Instead it defines common helpers used by all Google API clients.";
license = "apache";
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

homepage?

, google_auth, protobuf, googleapis_common_protos, requests, grpcio, setuptools, mock, pytest }:

buildPythonPackage rec {
name = "google-api-core-${version}";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pname = "google-api-core";
version = "0.1.2";

drop name


buildPythonPackage rec {
name = "google-auth-${version}";
version = "1.2.1";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

sha256 = "041qpwlvpawggasvbfpkx39mkg4dgvivj831x7kinidayrf46w3i";
};

buildInputs = [ pytest mock oauth2client flask requests urllib3 pytest-localserver ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checkInputs


meta = {
description = "This library simplifies using Google’s various server-to-server authentication mechanisms to access Google APIs.";
license = "apache";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use lib.licenses

@FRidh
Copy link
Member

FRidh commented Dec 20, 2017

Also, a commit per expression is needed.

@vanschelven
Copy link
Contributor Author

@FRidh anything I can do to get this PR accepted? I've implemented the changes you requested. I'd rather have it merged now that it still has no conflicts with master.

@FRidh FRidh merged commit 1dc391d into NixOS:master Dec 28, 2017
@FRidh
Copy link
Member

FRidh commented Dec 28, 2017

Looks good, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants