summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2023-09-20 12:54:47 +0200
committerGitHub <noreply@github.com>2023-09-20 12:54:47 +0200
commit99fc28a42289b07b90fc12418c512bf0bf9f43da (patch)
tree58b99dec954fcdeda6aac9028d3a1a28f4adf57f
parente1e4bd4bcf06fa5ca3ecf92c8f0be9d2fa05d69e (diff)
parent86d1557db7234dadf745e0747645d435536eda50 (diff)
downloadnixpkgs-99fc28a42289b07b90fc12418c512bf0bf9f43da.tar
nixpkgs-99fc28a42289b07b90fc12418c512bf0bf9f43da.tar.gz
nixpkgs-99fc28a42289b07b90fc12418c512bf0bf9f43da.tar.bz2
nixpkgs-99fc28a42289b07b90fc12418c512bf0bf9f43da.tar.lz
nixpkgs-99fc28a42289b07b90fc12418c512bf0bf9f43da.tar.xz
nixpkgs-99fc28a42289b07b90fc12418c512bf0bf9f43da.tar.zst
nixpkgs-99fc28a42289b07b90fc12418c512bf0bf9f43da.zip
Merge pull request #256280 from fabaff/azure-mgmt-iothub-bump
python311Packages.azure-mgmt-iothub: 2.4.0 -> 3.0.0 
-rw-r--r--pkgs/development/python-modules/azure-mgmt-iothub/default.nix26
-rw-r--r--pkgs/tools/admin/azure-cli/python-packages.nix6
2 files changed, 19 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/azure-mgmt-iothub/default.nix b/pkgs/development/python-modules/azure-mgmt-iothub/default.nix
index e4e3ae6374c..8890f65af3a 100644
--- a/pkgs/development/python-modules/azure-mgmt-iothub/default.nix
+++ b/pkgs/development/python-modules/azure-mgmt-iothub/default.nix
@@ -1,40 +1,44 @@
 { lib
-, buildPythonPackage
-, fetchPypi
-, msrest
-, msrestazure
 , azure-common
 , azure-mgmt-core
-, azure-mgmt-nspkg
+, buildPythonPackage
+, fetchPypi
+, isodate
 , pythonOlder
+, typing-extensions
 }:
 
 buildPythonPackage rec {
   pname = "azure-mgmt-iothub";
-  version = "2.4.0";
+  version = "3.0.0";
   format = "setuptools";
 
   disabled = pythonOlder "3.7";
 
   src = fetchPypi {
     inherit pname version;
-    extension = "zip";
-    hash = "sha256-enpNE5kVyGK+ctrGt1gt6633rNvT9FM76kSQ7prb1Wo=";
+    hash = "sha256-2vIfyYxoo1PsYWMYwOYr4EyNaJmWC+jCy/mRZzrItyI=";
   };
 
   propagatedBuildInputs = [
     azure-common
     azure-mgmt-core
-    msrest
-    msrestazure
+    isodate
+  ] ++ lib.optionals (pythonOlder "3.8") [
+    typing-extensions
   ];
 
-  # has no tests
+  # Module has no tests
   doCheck = false;
 
+  pythonImportsCheck = [
+    "azure.mgmt.iothub"
+  ];
+
   meta = with lib; {
     description = "This is the Microsoft Azure IoTHub Management Client Library";
     homepage = "https://github.com/Azure/azure-sdk-for-python";
+    changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-mgmt-iothub_${version}/sdk/iothub/azure-mgmt-iothub/CHANGELOG.md";
     license = licenses.mit;
     maintainers = with maintainers; [ maxwilson ];
   };
diff --git a/pkgs/tools/admin/azure-cli/python-packages.nix b/pkgs/tools/admin/azure-cli/python-packages.nix
index 9a3a3c372b5..4072eb83964 100644
--- a/pkgs/tools/admin/azure-cli/python-packages.nix
+++ b/pkgs/tools/admin/azure-cli/python-packages.nix
@@ -186,8 +186,10 @@ let
       azure-mgmt-imagebuilder = overrideAzureMgmtPackage super.azure-mgmt-imagebuilder "1.2.0" "zip"
         "sha256-XmGIzw+yGYgdaNGZJClFRl531BGsQUH+HESUXGVK6TI=";
 
-      azure-mgmt-iothub = overrideAzureMgmtPackage super.azure-mgmt-iothub "2.3.0" "zip"
-        "sha256-ml+koj52l5o0toAcnsGtsw0tGnO5F/LKq56ovzdmx/A=";
+      azure-mgmt-iothub = (overrideAzureMgmtPackage super.azure-mgmt-iothub "2.3.0" "zip"
+        "sha256-ml+koj52l5o0toAcnsGtsw0tGnO5F/LKq56ovzdmx/A=").overridePythonAttrs (attrs: {
+        propagatedBuildInputs = attrs.propagatedBuildInputs or [ ] ++ [ self.msrest ];
+      });
 
       azure-mgmt-iothubprovisioningservices = overrideAzureMgmtPackage super.azure-mgmt-iothubprovisioningservices "1.1.0" "zip"
         "sha256-04OoJuff93L62G6IozpmHpEaUbHHHD6nKlkMHVoJvJ4=";