1{ stdenv
2, buildPythonPackage
3, fetchFromGitHub
4, six
5, google_auth
6}:
7
8buildPythonPackage rec {
9 pname = "google-cloud-testutils";
10 version = "unstable-36ffa923c7037e8b4fdcaa76272cb6267e908a9d";
11
12 # google-cloud-testutils is not "really"
13 # released as a python package
14 # but it is required for google-cloud-* tests
15 # so why not package it as a module
16 src = fetchFromGitHub {
17 owner = "googleapis";
18 repo = "google-cloud-python";
19 rev = "36ffa923c7037e8b4fdcaa76272cb6267e908a9d";
20 sha256 = "1fvcnssmpgf4lfr7l9h7cz984rbc5mfr1j1br12japcib5biwzjy";
21 };
22
23 propagatedBuildInputs = [ six google_auth ];
24
25 postPatch = ''
26 cd test_utils
27 '';
28
29 meta = with stdenv.lib; {
30 description = "System test utilities for google-cloud-python";
31 homepage = https://github.com/GoogleCloudPlatform/google-cloud-python;
32 license = licenses.asl20;
33 maintainers = [ maintainers.costrouc ];
34 };
35}