From 33d44eacda4080919b276b5469c86c34c7536464 Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 22:23:15 +0700 Subject: [PATCH 1/2] python3Packages.azure-servicefabric: migrate to pyproject --- .../python-modules/azure-servicefabric/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/azure-servicefabric/default.nix b/pkgs/development/python-modules/azure-servicefabric/default.nix index 43b2eaf0706b..ecd1cc52d6f4 100644 --- a/pkgs/development/python-modules/azure-servicefabric/default.nix +++ b/pkgs/development/python-modules/azure-servicefabric/default.nix @@ -4,12 +4,13 @@ fetchPypi, azure-common, msrest, + setuptools, }: buildPythonPackage rec { pname = "azure-servicefabric"; version = "8.2.0.0"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; @@ -17,7 +18,9 @@ buildPythonPackage rec { sha256 = "f49c8759447970817b9b2d3d4b97439765dcf75ba01b6066ce96b605052fbb23"; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ azure-common msrest ]; From 27adac70a63977584a76ccf45112e7896414436b Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 22:29:41 +0700 Subject: [PATCH 2/2] python3Packages.azure-servicefabric: modernize --- .../python-modules/azure-servicefabric/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/azure-servicefabric/default.nix b/pkgs/development/python-modules/azure-servicefabric/default.nix index ecd1cc52d6f4..9e10d5c81611 100644 --- a/pkgs/development/python-modules/azure-servicefabric/default.nix +++ b/pkgs/development/python-modules/azure-servicefabric/default.nix @@ -7,15 +7,17 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "azure-servicefabric"; version = "8.2.0.0"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; extension = "zip"; - sha256 = "f49c8759447970817b9b2d3d4b97439765dcf75ba01b6066ce96b605052fbb23"; + hash = "sha256-9JyHWUR5cIF7my09S5dDl2Xc91ugG2Bmzpa2BQUvuyM="; }; build-system = [ setuptools ]; @@ -28,10 +30,12 @@ buildPythonPackage rec { # has no tests doCheck = false; + pythonImportsCheck = [ "azure.servicefabric" ]; + meta = { description = "This project provides a client library in Python that makes it easy to consume Microsoft Azure Storage services"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ maxwilson ]; }; -} +})