From 7fa66ff662d87987b83c1f7758e4cc0adc915b26 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 10 Apr 2024 09:26:16 +0200 Subject: [PATCH] python312Packages.azure-mgmt-botservice: refactor --- .../azure-mgmt-botservice/default.nix | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/azure-mgmt-botservice/default.nix b/pkgs/development/python-modules/azure-mgmt-botservice/default.nix index 4527294c90b3..58feea1f2173 100644 --- a/pkgs/development/python-modules/azure-mgmt-botservice/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-botservice/default.nix @@ -1,15 +1,19 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27 +{ lib , azure-common , azure-mgmt-core +, buildPythonPackage +, fetchPypi , msrest -, msrestazure +, pythonOlder +, setuptools }: buildPythonPackage rec { - version = "2.0.0"; - format = "setuptools"; pname = "azure-mgmt-botservice"; - disabled = isPy27; + version = "2.0.0"; + pyproject = true; + + disabled = pythonOlder "3.9"; src = fetchPypi { inherit pname version; @@ -17,11 +21,14 @@ buildPythonPackage rec { extension = "zip"; }; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ azure-common azure-mgmt-core msrest - msrestazure ]; # no tests included @@ -31,7 +38,8 @@ buildPythonPackage rec { meta = with lib; { description = "Microsoft Azure API 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/botservice/azure-mgmt-botservice"; + changelog = "https://github.com/Azure/azure-sdk-for-python/tree/azure-mgmt-botservice_${version}/sdk/botservice/azure-mgmt-botservice"; license = licenses.mit; maintainers = with maintainers; [ jonringer ]; };