Something went wrong. Try again.
lol
Something went wrong. Try again.
1.6 kB · 87 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788{ lib, aiohttp, aioresponses, asgiref, azure-core, azure-identity, buildPythonPackage, fetchFromGitHub, ijson, msal, pandas, pytest-asyncio, pytest-xdist, pytestCheckHook, python-dateutil, requests, uv-build,}:
buildPythonPackage rec { pname = "azure-kusto-data"; version = "6.0.3"; pyproject = true;
src = fetchFromGitHub { owner = "Azure"; repo = "azure-kusto-python"; tag = "v${version}"; hash = "sha256-n69KpWZpAVMjr7d1QRQ/J/SgeTLkadJUhCgD62F6O7w="; };
sourceRoot = "${src.name}/${pname}";
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "uv_build>=0.8.9,<0.9.0" uv_build '';
build-system = [ uv-build ];
pythonRelaxDeps = [ "ijson" ];
dependencies = [ azure-core azure-identity ijson msal python-dateutil requests ];
optional-dependencies = { aio = [ aiohttp asgiref ]; pandas = [ pandas ]; };
nativeCheckInputs = [ aioresponses pytest-asyncio pytest-xdist pytestCheckHook ] ++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "azure.kusto.data" ];
disabledTestPaths = [ # Tests require network access "tests/aio/test_async_token_providers.py" "tests/test_token_providers.py" "tests/test_e2e_data.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}"; license = lib.licenses.mit; maintainers = [ ]; };}