mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 03:03:37 +00:00
python310Packages.google-cloud-runtimeconfig: disable on older Python releases
This commit is contained in:
parent
81f3bf3604
commit
2ae853805b
@ -5,23 +5,35 @@
|
|||||||
, google-cloud-core
|
, google-cloud-core
|
||||||
, mock
|
, mock
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "google-cloud-runtimeconfig";
|
pname = "google-cloud-runtimeconfig";
|
||||||
version = "0.33.2";
|
version = "0.33.2";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-MPmyvm2FSrUzb1y5i4xl5Cqea6sxixLoZ7V1hxNi7hw=";
|
hash = "sha256-MPmyvm2FSrUzb1y5i4xl5Cqea6sxixLoZ7V1hxNi7hw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ google-api-core google-cloud-core ];
|
propagatedBuildInputs = [
|
||||||
|
google-api-core
|
||||||
|
google-cloud-core
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [ mock pytestCheckHook ];
|
checkInputs = [
|
||||||
|
mock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
# Client tests require credentials
|
# Client tests require credentials
|
||||||
disabledTests = [ "client_options" ];
|
disabledTests = [
|
||||||
|
"client_options"
|
||||||
|
];
|
||||||
|
|
||||||
# prevent google directory from shadowing google imports
|
# prevent google directory from shadowing google imports
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user