From 1a7b88af1dce6292aebd951e69411dc945b567f2 Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 21:54:12 +0700 Subject: [PATCH 1/2] python3Packages.azure-mgmt-machinelearningcompute: migrate to pyproject --- .../azure-mgmt-machinelearningcompute/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-machinelearningcompute/default.nix b/pkgs/development/python-modules/azure-mgmt-machinelearningcompute/default.nix index 45255d441596..f1f1d5d8af7f 100644 --- a/pkgs/development/python-modules/azure-mgmt-machinelearningcompute/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-machinelearningcompute/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + setuptools, msrest, msrestazure, azure-common, @@ -11,7 +12,7 @@ buildPythonPackage rec { pname = "azure-mgmt-machinelearningcompute"; version = "0.4.1"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; @@ -19,7 +20,9 @@ buildPythonPackage rec { sha256 = "7a52f85591114ef33a599dabbef840d872b7f599b7823e596af9490ec51b873f"; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ msrest msrestazure azure-common From 6e2d3859dfc585ee2d3645067d6662955cb7b4c7 Mon Sep 17 00:00:00 2001 From: Harinn Date: Thu, 4 Jun 2026 22:08:53 +0700 Subject: [PATCH 2/2] python3Packages.azure-mgmt-machinelearningcompute: modernize --- .../azure-mgmt-machinelearningcompute/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-machinelearningcompute/default.nix b/pkgs/development/python-modules/azure-mgmt-machinelearningcompute/default.nix index f1f1d5d8af7f..ecea97d1ff64 100644 --- a/pkgs/development/python-modules/azure-mgmt-machinelearningcompute/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-machinelearningcompute/default.nix @@ -9,15 +9,17 @@ azure-mgmt-nspkg, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "azure-mgmt-machinelearningcompute"; version = "0.4.1"; pyproject = true; + __structuredAttrs = true; + src = fetchPypi { - inherit pname version; + inherit (finalAttrs) pname version; extension = "zip"; - sha256 = "7a52f85591114ef33a599dabbef840d872b7f599b7823e596af9490ec51b873f"; + hash = "sha256-elL4VZERTvM6WZ2rvvhA2HK39Zm3gj5ZavlJDsUbhz8="; }; build-system = [ setuptools ]; @@ -38,4 +40,4 @@ buildPythonPackage rec { license = lib.licenses.mit; maintainers = with lib.maintainers; [ maxwilson ]; }; -} +})