diff --git a/pkgs/development/python-modules/azure-storage-file/default.nix b/pkgs/development/python-modules/azure-storage-file/default.nix index f55cf02e2d07..440ba22c21ae 100644 --- a/pkgs/development/python-modules/azure-storage-file/default.nix +++ b/pkgs/development/python-modules/azure-storage-file/default.nix @@ -2,23 +2,28 @@ lib, buildPythonPackage, fetchPypi, + setuptools, azure-common, azure-storage-common, isPy3k, futures ? null, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "azure-storage-file"; version = "2.1.0"; - format = "setuptools"; + pyproject = true; + + __structuredAttrs = true; src = fetchPypi { - inherit pname version; - sha256 = "3559b9c7ab13450c66ea833eb82c28233bee24f1bd8ca19aa7d27f8c23d5bc53"; + inherit (finalAttrs) pname version; + hash = "sha256-NVm5x6sTRQxm6oM+uCwoIzvuJPG9jKGap9J/jCPVvFM="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ azure-common azure-storage-common ] @@ -27,10 +32,12 @@ buildPythonPackage rec { # has no tests doCheck = false; + pythonImportsCheck = [ "azure.storage.file" ]; + meta = { description = "Client library for Microsoft Azure Storage services containing the file service APIs"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ cmcdragonkai ]; }; -} +})