76 lines
1.4 KiB
Nix
76 lines
1.4 KiB
Nix
{
|
|
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 = "4.6.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Azure";
|
|
repo = "azure-kusto-python";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-rm8G3/WAUlK1/80uk3uiTqDA5hUIr+VVZEmPe0mYBjI=";
|
|
};
|
|
|
|
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/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ pyrox0 ];
|
|
};
|
|
}
|