From 54f25b85873f259fb1f478cf744e27b8b5c595d2 Mon Sep 17 00:00:00 2001 From: dish Date: Tue, 26 Nov 2024 17:07:43 -0500 Subject: [PATCH] python3Packages.azure-kusto-data: init at 4.6.1 --- .../azure-kusto-data/default.nix | 59 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 61 insertions(+) create mode 100644 pkgs/development/python-modules/azure-kusto-data/default.nix diff --git a/pkgs/development/python-modules/azure-kusto-data/default.nix b/pkgs/development/python-modules/azure-kusto-data/default.nix new file mode 100644 index 000000000000..a4ead5a9be5a --- /dev/null +++ b/pkgs/development/python-modules/azure-kusto-data/default.nix @@ -0,0 +1,59 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + python-dateutil, + requests, + azure-identity, + msal, + ijson, + azure-core, + asgiref, + aiohttp, + pandas, +}: + +buildPythonPackage rec { + pname = "azure-kusto-data"; + version = "4.6.1"; + pyproject = true; + + src = fetchPypi { + inherit pname version; + hash = "sha256-tfOnb6rFjTzg4af26gK5gk1185mejAiaDvetE/r4L0Q="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + python-dateutil + requests + azure-identity + msal + ijson + azure-core + ]; + + optional-dependencies = { + pandas = [ pandas ]; + aio = [ + aiohttp + asgiref + ]; + }; + + # Tests require secret connection strings + # and a network connection. + doCheck = false; + + pythonImportsCheck = [ "azure.kusto.data" ]; + + meta = { + changelog = "https://github.com/Azure/azure-kusto-python/releases/tag/v${version}"; + description = "Kusto Data Client"; + homepage = "https://github.com/Azure/azure-kusto-python"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ pyrox0 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7a1259039077..aef0f7af1639 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1173,6 +1173,8 @@ self: super: with self; { azure-keyvault-secrets = callPackage ../development/python-modules/azure-keyvault-secrets { }; + azure-kusto-data = callPackage ../development/python-modules/azure-kusto-data { }; + azure-loganalytics = callPackage ../development/python-modules/azure-loganalytics { }; azure-mgmt-advisor = callPackage ../development/python-modules/azure-mgmt-advisor { };