pythonPackages.google_cloud_testutils: init at unstable-36ffa923c7037e8b4fdcaa76272cb6267e908a9d

This is a pseudo package (not released on pypi) but a package
necissary for running google-cloud-* package tests.
This commit is contained in:
Chris Ostrouchov 2018-11-02 14:33:49 -04:00
parent 53a196bea8
commit 6622deac9a
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 37 additions and 0 deletions

@ -0,0 +1,35 @@
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, six
, google_auth
}:
buildPythonPackage rec {
pname = "google-cloud-testutils";
version = "unstable-36ffa923c7037e8b4fdcaa76272cb6267e908a9d";
# google-cloud-testutils is not "really"
# released as a python package
# but it is required for google-cloud-* tests
# so why not package it as a module
src = fetchFromGitHub {
owner = "googleapis";
repo = "google-cloud-python";
rev = "36ffa923c7037e8b4fdcaa76272cb6267e908a9d";
sha256 = "1fvcnssmpgf4lfr7l9h7cz984rbc5mfr1j1br12japcib5biwzjy";
};
propagatedBuildInputs = [ six google_auth ];
postPatch = ''
cd test_utils
'';
meta = with stdenv.lib; {
description = "System test utilities for google-cloud-python";
homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}

@ -2446,6 +2446,8 @@ in {
google_cloud_speech = callPackage ../development/python-modules/google_cloud_speech { };
google_cloud_testutils = callPackage ../development/python-modules/google_cloud_testutils { };
google_resumable_media = callPackage ../development/python-modules/google_resumable_media { };
gpgme = toPythonModule (pkgs.gpgme.override { pythonSupport=true; });