aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/google_cloud_resource_manager/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/python-modules/google_cloud_resource_manager/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/python-modules/google_cloud_resource_manager/default.nix27
1 files changed, 14 insertions, 13 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/python-modules/google_cloud_resource_manager/default.nix b/infra/libkookie/nixpkgs/pkgs/development/python-modules/google_cloud_resource_manager/default.nix
index 84fac88bcfa9..a4b310797a7f 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/python-modules/google_cloud_resource_manager/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/python-modules/google_cloud_resource_manager/default.nix
@@ -1,11 +1,5 @@
-{ stdenv
-, buildPythonPackage
-, fetchPypi
-, google_cloud_core
-, google_api_core
-, pytest
-, mock
-}:
+{ stdenv, buildPythonPackage, fetchPypi, pytestCheckHook, pythonOlder
+, google_cloud_core, google_api_core, mock, pytest }:
buildPythonPackage rec {
pname = "google-cloud-resource-manager";
@@ -16,17 +10,24 @@ buildPythonPackage rec {
sha256 = "de7eba5235df61deee2291a2fe70b904154df613a334109488afdea7a4c0011f";
};
- checkInputs = [ pytest mock ];
- propagatedBuildInputs = [ google_cloud_core google_api_core ];
+ disabled = pythonOlder "3.5";
- checkPhase = ''
+ checkInputs = [ mock pytestCheckHook ];
+ propagatedBuildInputs = [ google_api_core google_cloud_core ];
+
+ # api_url test broken, fix not yet released
+ # https://github.com/googleapis/python-resource-manager/pull/31
+ disabledTests =
+ [ "api_url_no_extra_query_param" "api_url_w_custom_endpoint" ];
+
+ # prevent google directory from shadowing google imports
+ preCheck = ''
rm -r google
- pytest tests/unit
'';
meta = with stdenv.lib; {
description = "Google Cloud Resource Manager API client library";
- homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
+ homepage = "https://github.com/googleapis/python-resource-manager";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};