Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 77 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778{ lib, aiohttp, asgiref, azure-core, azure-identity, buildPythonPackage, fetchFromGitHub, ijson, msal, pandas, pytest-asyncio, pytestCheckHook, python-dateutil, pythonOlder, requests, setuptools,}:
buildPythonPackage rec { pname = "azure-kusto-data"; version = "5.0.5"; pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub { owner = "Azure"; repo = "azure-kusto-python"; tag = "v${version}"; hash = "sha256-DEHTxSvc6AeBMEJuAiDavFj2xVfPmWKpZBaZcpHWHak="; };
sourceRoot = "${src.name}/${pname}";
build-system = [ setuptools ];
dependencies = [ azure-core azure-identity ijson msal python-dateutil requests ];
optional-dependencies = { aio = [ aiohttp asgiref ]; pandas = [ pandas ]; };
nativeCheckInputs = [ pytest-asyncio pytestCheckHook ] ++ lib.flatten (builtins.attrValues 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://pypi.org/project/azure-kusto-data/"; changelog = "https://github.com/Azure/azure-kusto-python/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ pyrox0 ]; };}