From 97540bcfed14ae1efa8ed3aae6a795cffc0483a5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 10 Apr 2024 09:31:59 +0200 Subject: [PATCH] python312Packages.azure-mgmt-databoxedge: refactor --- .../azure-mgmt-databoxedge/default.nix | 25 +++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-databoxedge/default.nix b/pkgs/development/python-modules/azure-mgmt-databoxedge/default.nix index 98c697a4e6c6..0089e02d9bf4 100644 --- a/pkgs/development/python-modules/azure-mgmt-databoxedge/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-databoxedge/default.nix @@ -1,24 +1,34 @@ -{ lib, buildPythonPackage, fetchPypi -, msrestazure +{ lib , azure-common , azure-mgmt-core +, buildPythonPackage +, fetchPypi +, msrest +, pythonOlder +, setuptools }: buildPythonPackage rec { pname = "azure-mgmt-databoxedge"; version = "1.0.0"; - format = "setuptools"; + pyproject = true; + + disabled = pythonOlder "3.9"; src = fetchPypi { inherit pname version; extension = "zip"; - sha256 = "04090062bc1e8f00c2f45315a3bceb0fb3b3479ec1474d71b88342e13499b087"; + hash = "sha256-BAkAYrwejwDC9FMVo7zrD7OzR57BR01xuINC4TSZsIc="; }; - propagatedBuildInputs = [ - msrestazure + build-system = [ + setuptools + ]; + + dependencies = [ azure-common azure-mgmt-core + msrest ]; # no tests in pypi tarball @@ -28,7 +38,8 @@ buildPythonPackage rec { meta = with lib; { description = "Microsoft Azure Databoxedge 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/databox/azure-mgmt-databox"; + changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-mgmt-databoxedge_${version}/sdk/databox/azure-mgmt-databox/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ jonringer ]; };