From cd955c18b745468e504e98a82236ce92026fcd70 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 10 Apr 2024 09:55:19 +0200 Subject: [PATCH] python312Packages.azure-mgmt-sqlvirtualmachine: refactor --- .../azure-mgmt-sqlvirtualmachine/default.nix | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-sqlvirtualmachine/default.nix b/pkgs/development/python-modules/azure-mgmt-sqlvirtualmachine/default.nix index 4adafa254ba1..8360f603220c 100644 --- a/pkgs/development/python-modules/azure-mgmt-sqlvirtualmachine/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-sqlvirtualmachine/default.nix @@ -1,23 +1,32 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27 +{ lib , azure-common , azure-mgmt-core +, buildPythonPackage +, fetchPypi , msrest , msrestazure +, pythonOlder +, setuptools }: buildPythonPackage rec { - version = "0.5.0"; - format = "setuptools"; pname = "azure-mgmt-sqlvirtualmachine"; - disabled = isPy27; + version = "0.5.0"; + pyproject = true; + + disabled = pythonOlder "3.9"; src = fetchPypi { inherit pname version; - sha256 = "1b9am8raa17hxnz7d5pk2ix0309wsnhnchq1mi22icd728sl5adm"; + hash = "sha256-talCNRKnsShErAFDZqHVPIEBehTzlna+7fAEpTKqKq0="; extension = "zip"; }; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ azure-common azure-mgmt-core msrest @@ -31,7 +40,8 @@ buildPythonPackage rec { meta = with lib; { description = "Microsoft Azure SQL Virtual Machine Management Client Library for Python"; - homepage = "https://github.com/Azure/azure-sdk-for-python"; + homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/sql/azure-mgmt-sqlvirtualmachine"; + changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-mgmt-sqlvirtualmachine_${version}/sdk/sql/azure-mgmt-sqlvirtualmachine/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ jonringer ]; };