1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
{
lib,
aiohttp,
azure-kusto-data,
azure-storage-blob,
azure-storage-queue,
buildPythonPackage,
fetchFromGitHub,
pandas,
pytest-asyncio,
pytest-xdist,
pytestCheckHook,
responses,
uv-build,
tenacity,
}:
buildPythonPackage rec {
pname = "azure-kusto-ingest";
version = "6.0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "Azure";
repo = "azure-kusto-python";
tag = "v${version}";
hash = "sha256-iggsVxLmDbP6+oSPaIiujPLsZAWwm5VLZSl+HYm0DIQ=";
};
sourceRoot = "${src.name}/${pname}";
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "uv_build>=0.8.9,<0.9.0" uv-build
'';
build-system = [ uv-build ];
dependencies = [
azure-kusto-data
azure-storage-blob
azure-storage-queue
tenacity
];
pythonRelaxDeps = [
"azure-storage-blob"
"azure-storage-queue"
];
optional-dependencies = {
pandas = [ pandas ];
};
nativeCheckInputs = [
aiohttp
pytest-asyncio
pytest-xdist
pytestCheckHook
responses
]
++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "azure.kusto.ingest" ];
disabledTestPaths = [
# Tests require network access
"tests/test_e2e_ingest.py"
];
meta = {
description = "Module for Kusto Ingest";
homepage = "https://github.com/Azure/azure-kusto-python/tree/master/azure-kusto-ingest";
changelog = "https://github.com/Azure/azure-kusto-python/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|