From 139ab9feea835b7bf9e583a16fd482e7c1d82efc Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 22:32:15 +0700 Subject: [PATCH] python3Packages.azure-storage-common: modernize --- .../python-modules/azure-storage-common/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/azure-storage-common/default.nix b/pkgs/development/python-modules/azure-storage-common/default.nix index 80a1f3bbc1ac..3b05afab23a2 100644 --- a/pkgs/development/python-modules/azure-storage-common/default.nix +++ b/pkgs/development/python-modules/azure-storage-common/default.nix @@ -11,14 +11,16 @@ azure-storage-nspkg, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "azure-storage-common"; version = "2.1.0"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { - inherit pname version; - sha256 = "ccedef5c67227bc4d6670ffd37cec18fb529a1b7c3a5e53e4096eb0cf23dc73f"; + inherit (finalAttrs) pname version; + hash = "sha256-zO3vXGcie8TWZw/9N87Bj7UpobfDpeU+QJbrDPI9xz8="; }; build-system = [ setuptools ]; @@ -34,10 +36,12 @@ buildPythonPackage rec { # has no tests doCheck = false; + pythonImportsCheck = [ "azure.storage.common" ]; + meta = { description = "Client library for Microsoft Azure Storage services containing common code shared by blob, file and queue"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ cmcdragonkai ]; }; -} +})