From 11c9320791c85daec91c1a84ae1232897e5a00d0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 20 May 2024 08:45:56 +0200 Subject: [PATCH] python311Packages.azure-storage-file-share: refactor --- .../azure-storage-file-share/default.nix | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/azure-storage-file-share/default.nix b/pkgs/development/python-modules/azure-storage-file-share/default.nix index 1749150766e4..40976f70c791 100644 --- a/pkgs/development/python-modules/azure-storage-file-share/default.nix +++ b/pkgs/development/python-modules/azure-storage-file-share/default.nix @@ -6,28 +6,39 @@ , isodate , msrest , pythonOlder +, setuptools , typing-extensions }: buildPythonPackage rec { pname = "azure-storage-file-share"; version = "12.16.0"; - format = "setuptools"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchPypi { inherit pname version; hash = "sha256-QS+35sPCj29yKvmBlapZQHqqMjI6+hOkoB9i0Lh3TrM="; }; - propagatedBuildInputs = [ + build-system = [ + setuptools + ]; + + dependencies = [ azure-core cryptography isodate typing-extensions ]; + passthru.optional-dependencies = { + aio = [ + azure-core + ] ++ azure-core.optional-dependencies.aio; + }; + # Tests require checkout from monorepo doCheck = false; @@ -38,7 +49,7 @@ buildPythonPackage rec { meta = with lib; { description = "Microsoft Azure File Share Storage 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/storage/azure-storage-file-share"; changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-storage-file-share_${version}/sdk/storage/azure-storage-file-share/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ kamadorueda ];