python312Packages.azure-kusto-ingest: refactor

This commit is contained in:
Fabian Affolter 2024-11-30 10:24:03 +01:00
parent 747acc25bf
commit b7396ef667

View File

@ -1,13 +1,18 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
aiohttp,
azure-kusto-data,
azure-storage-blob,
azure-storage-queue,
tenacity,
buildPythonPackage,
fetchFromGitHub,
pandas,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
responses,
setuptools,
tenacity,
}:
buildPythonPackage rec {
@ -15,6 +20,8 @@ buildPythonPackage rec {
version = "4.6.1";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "Azure";
repo = "azure-kusto-python";
@ -22,7 +29,7 @@ buildPythonPackage rec {
hash = "sha256-rm8G3/WAUlK1/80uk3uiTqDA5hUIr+VVZEmPe0mYBjI=";
};
sourceRoot = "${src.name}/azure-kusto-ingest";
sourceRoot = "${src.name}/${pname}";
build-system = [ setuptools ];
@ -37,16 +44,24 @@ buildPythonPackage rec {
pandas = [ pandas ];
};
# Tests require secret connection strings
# and a network connection.
doCheck = false;
nativeCheckInputs = [
aiohttp
pytest-asyncio
pytestCheckHook
responses
] ++ lib.flatten (builtins.attrValues 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/v${version}";
description = "Kusto Ingest Client";
homepage = "https://github.com/Azure/azure-kusto-python";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};