From 1f5dffd17f1790cd1a73f238ad5c788185a571e9 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 8 Jul 2026 21:47:37 +0000 Subject: [PATCH] python3Packages.azure-kusto-data: 6.0.3 -> 6.0.4 Diff: https://github.com/Azure/azure-kusto-python/compare/v6.0.3...v6.0.4 Changelog: https://github.com/Azure/azure-kusto-python/releases/tag/v6.0.4 --- .../azure-kusto-data/default.nix | 54 +++++++++++++------ 1 file changed, 37 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/azure-kusto-data/default.nix b/pkgs/development/python-modules/azure-kusto-data/default.nix index f511f6357c61..4aece96fb20b 100644 --- a/pkgs/development/python-modules/azure-kusto-data/default.nix +++ b/pkgs/development/python-modules/azure-kusto-data/default.nix @@ -1,36 +1,49 @@ { lib, - aiohttp, - aioresponses, - asgiref, - azure-core, - azure-identity, buildPythonPackage, fetchFromGitHub, + + # build-system + uv-build, + + # dependencies + azure-core, + azure-identity, ijson, msal, + python-dateutil, + requests, + + # optional-dependencies + + # tests + # aio: + aiohttp, + asgiref, + # pandas: pandas, + + # tests + aioresponses, pytest-asyncio, pytest-xdist, pytestCheckHook, - python-dateutil, - requests, - uv-build, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "azure-kusto-data"; - version = "6.0.3"; + version = "6.0.4"; pyproject = true; + __structuredAttrs = true; src = fetchFromGitHub { owner = "Azure"; repo = "azure-kusto-python"; - tag = "v${version}"; - hash = "sha256-n69KpWZpAVMjr7d1QRQ/J/SgeTLkadJUhCgD62F6O7w="; + tag = "v${finalAttrs.version}"; + hash = "sha256-iggsVxLmDbP6+oSPaIiujPLsZAWwm5VLZSl+HYm0DIQ="; }; - sourceRoot = "${src.name}/${pname}"; + sourceRoot = "${finalAttrs.src.name}/azure-kusto-data"; postPatch = '' substituteInPlace pyproject.toml \ @@ -42,7 +55,6 @@ buildPythonPackage rec { pythonRelaxDeps = [ "ijson" ]; - dependencies = [ azure-core azure-identity @@ -66,22 +78,30 @@ buildPythonPackage rec { pytest-xdist pytestCheckHook ] - ++ lib.concatAttrValues optional-dependencies; + ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies; pythonImportsCheck = [ "azure.kusto.data" ]; + disabledTests = [ + # AssertionError: Attributes of DataFrame.iloc[:, 1] (column name="rowguid") are different + "test_sanity_data_frame" + ]; + disabledTestPaths = [ # Tests require network access "tests/aio/test_async_token_providers.py" "tests/test_token_providers.py" "tests/test_e2e_data.py" + + # AssertionError: assert is + "tests/test_helpers.py" ]; meta = { description = "Kusto Data Client"; homepage = "https://github.com/Azure/azure-kusto-python/tree/master/azure-kusto-data"; - changelog = "https://github.com/Azure/azure-kusto-python/releases/tag/${src.tag}"; + changelog = "https://github.com/Azure/azure-kusto-python/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = [ ]; }; -} +})