From 2b4e34b47c524c3e0c77fc6c6e04e9e1c8320f45 Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 21:47:12 +0700 Subject: [PATCH] python3Packages.azure-mgmt-devspaces: modernize --- .../python-modules/azure-mgmt-devspaces/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-devspaces/default.nix b/pkgs/development/python-modules/azure-mgmt-devspaces/default.nix index 6724970b0c4b..56e286dd4019 100644 --- a/pkgs/development/python-modules/azure-mgmt-devspaces/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-devspaces/default.nix @@ -8,15 +8,17 @@ azure-mgmt-nspkg, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "azure-mgmt-devspaces"; version = "0.2.0"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; extension = "zip"; - sha256 = "0dvjsr9i87j1ggbj3dcmgifpk64xr5f5ziwf7z1fwkcx0szcid7k"; + hash = "sha256-87TIvgadTe7CP47HX1zJnZh5XXyVtSHXe0EeFFPWcjc="; }; build-system = [ setuptools ]; @@ -30,10 +32,12 @@ buildPythonPackage rec { # has no tests doCheck = false; + pythonImportsCheck = [ "azure.mgmt.devspaces" ]; + meta = { description = "This is the Microsoft Azure Dev Spaces Client Library"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ maxwilson ]; }; -} +})