From dfc76fa76ccb9c81717b2f9bec971ddc28d270cb Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 22:26:20 +0700 Subject: [PATCH 1/2] python3Packages.azure-storage-common: migrate to pyproject --- .../python-modules/azure-storage-common/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/azure-storage-common/default.nix b/pkgs/development/python-modules/azure-storage-common/default.nix index bdec55f4e0c1..80a1f3bbc1ac 100644 --- a/pkgs/development/python-modules/azure-storage-common/default.nix +++ b/pkgs/development/python-modules/azure-storage-common/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + setuptools, azure-common, cryptography, python-dateutil, @@ -13,14 +14,16 @@ buildPythonPackage rec { pname = "azure-storage-common"; version = "2.1.0"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; sha256 = "ccedef5c67227bc4d6670ffd37cec18fb529a1b7c3a5e53e4096eb0cf23dc73f"; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ azure-common cryptography python-dateutil From 139ab9feea835b7bf9e583a16fd482e7c1d82efc Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 22:32:15 +0700 Subject: [PATCH 2/2] 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 ]; }; -} +})