From e856f40f1859f8db4d2392a1c65e59cd55ff355e Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Fri, 2 Nov 2018 16:23:44 -0400 Subject: [PATCH] pythonPackages.google_cloud_speed: refactor enable tests --- .../python-modules/google_cloud_speech/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/google_cloud_speech/default.nix b/pkgs/development/python-modules/google_cloud_speech/default.nix index 6a8aefa92c4..3054f618784 100644 --- a/pkgs/development/python-modules/google_cloud_speech/default.nix +++ b/pkgs/development/python-modules/google_cloud_speech/default.nix @@ -13,8 +13,9 @@ buildPythonPackage rec { propagatedBuildInputs = [ google_api_core ]; checkInputs = [ pytest mock ]; - # needs credentials - doCheck = false; + checkPhase = '' + pytest tests/unit + ''; meta = with stdenv.lib; { description = "Cloud Speech API enables integration of Google speech recognition into applications.";