aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/google_cloud_testutils/default.nix
blob: 90e4683f7b0623234d30704095204bd72fa0c988 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ stdenv
, buildPythonPackage
, fetchFromGitHub
, six
, google_auth
}:

buildPythonPackage {
  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 ];
  };
}