Files
nixpkgs/pkgs/development/python-modules/azure-kusto-data/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

75 lines
1.4 KiB
Nix

{
lib,
aiohttp,
asgiref,
azure-core,
azure-identity,
buildPythonPackage,
fetchFromGitHub,
ijson,
msal,
pandas,
pytest-asyncio,
pytestCheckHook,
python-dateutil,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "azure-kusto-data";
version = "5.0.5";
pyproject = true;
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.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://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 ];
};
}