Skip to content

Commit

Permalink
google-cloud-iot: fix derivation (#353138)
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrumplex authored Nov 3, 2024
2 parents 9cafbc1 + 7cead3b commit aa9dd15
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/development/python-modules/google-cloud-iot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ buildPythonPackage rec {
pytestCheckHook
];

# including_default_value_fields was deprecated, the new version is called
# always_print_fields_with_no_presence
postPatch = ''
substituteInPlace "tests/unit/gapic/iot_v1/test_device_manager.py" \
--replace-fail "including_default_value_fields" "always_print_fields_with_no_presence"
substituteInPlace "google/cloud/iot_v1/services/device_manager/transports/rest.py" \
--replace-fail "including_default_value_fields" "always_print_fields_with_no_presence"
'';

disabledTests = [
# requires credentials
"test_list_device_registries"
Expand Down

0 comments on commit aa9dd15

Please sign in to comment.