From accf8b82368b8387704dff2d32c97e172153c688 Mon Sep 17 00:00:00 2001 From: natsukium Date: Mon, 7 Oct 2024 17:48:50 +0900 Subject: [PATCH] python312Packages.azure-storage-file-datalake: init at 12.17.0 --- .../azure-storage-file-datalake/default.nix | 50 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 52 insertions(+) create mode 100644 pkgs/development/python-modules/azure-storage-file-datalake/default.nix diff --git a/pkgs/development/python-modules/azure-storage-file-datalake/default.nix b/pkgs/development/python-modules/azure-storage-file-datalake/default.nix new file mode 100644 index 000000000000..03dcddfe569d --- /dev/null +++ b/pkgs/development/python-modules/azure-storage-file-datalake/default.nix @@ -0,0 +1,50 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + azure-core, + azure-storage-blob, + isodate, + typing-extensions, +}: + +buildPythonPackage rec { + pname = "azure-storage-file-datalake"; + version = "12.17.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "Azure"; + repo = "azure-sdk-for-python"; + rev = "refs/tags/azure-storage-file-datalake_${version}"; + hash = "sha256-FT51a7yuSMLJSnMFK9N09Rc8p/uaoYCcj9WliSvY6UA="; + }; + + sourceRoot = "${src.name}/sdk/storage/azure-storage-file-datalake"; + + build-system = [ setuptools ]; + + dependencies = [ + azure-core + azure-storage-blob + isodate + typing-extensions + ]; + + optional-dependencies = { + aio = [ azure-core ] ++ azure-core.optional-dependencies.aio; + }; + + pythonImportsCheck = [ "azure.storage.filedatalake" ]; + + # require devtools_testutils which is a internal package for azure-sdk + doCheck = false; + + meta = { + description = "Microsoft Azure File DataLake Storage Client Library for Python"; + homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-datalake"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index bf5605e4f8a4..379f1368987f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1353,6 +1353,8 @@ self: super: with self; { azure-storage-file = callPackage ../development/python-modules/azure-storage-file { }; + azure-storage-file-datalake = callPackage ../development/python-modules/azure-storage-file-datalake { }; + azure-storage-file-share = callPackage ../development/python-modules/azure-storage-file-share { }; azure-storage-nspkg = callPackage ../development/python-modules/azure-storage-nspkg { };