From f5469650e95d157907d9eb45d0b936b389408470 Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 22:09:40 +0700 Subject: [PATCH 1/2] python3Packages.azure-mgmt-sql: migrate to pyproject --- pkgs/development/python-modules/azure-mgmt-sql/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-sql/default.nix b/pkgs/development/python-modules/azure-mgmt-sql/default.nix index 94f6fe9b3e31..69940fa3cd8e 100644 --- a/pkgs/development/python-modules/azure-mgmt-sql/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-sql/default.nix @@ -8,12 +8,13 @@ azure-mgmt-core, azure-mgmt-nspkg, isPy3k, + setuptools, }: buildPythonPackage rec { pname = "azure-mgmt-sql"; version = "3.0.1"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; @@ -21,7 +22,9 @@ buildPythonPackage rec { sha256 = "129042cc011225e27aee6ef2697d585fa5722e5d1aeb0038af6ad2451a285457"; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ msrest msrestazure azure-common From 9def3a27a9e05a0d6f125e18c0451ceba0bb5279 Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 22:15:33 +0700 Subject: [PATCH 2/2] python3Packages.azure-mgmt-sql: modernize --- .../python-modules/azure-mgmt-sql/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-sql/default.nix b/pkgs/development/python-modules/azure-mgmt-sql/default.nix index 69940fa3cd8e..26a058b44fbc 100644 --- a/pkgs/development/python-modules/azure-mgmt-sql/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-sql/default.nix @@ -11,15 +11,17 @@ setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "azure-mgmt-sql"; version = "3.0.1"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; extension = "zip"; - sha256 = "129042cc011225e27aee6ef2697d585fa5722e5d1aeb0038af6ad2451a285457"; + hash = "sha256-EpBCzAESJeJ67m7yaX1YX6VyLl0a6wA4r2rSRRooVFc="; }; build-system = [ setuptools ]; @@ -43,4 +45,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ maxwilson ]; }; -} +})