diff --git a/pkgs/development/python-modules/azure-kusto-data/default.nix b/pkgs/development/python-modules/azure-kusto-data/default.nix index 7c3f6de7d24a..678d5bfa09e3 100644 --- a/pkgs/development/python-modules/azure-kusto-data/default.nix +++ b/pkgs/development/python-modules/azure-kusto-data/default.nix @@ -1,6 +1,7 @@ { lib, aiohttp, + aioresponses, asgiref, azure-core, azure-identity, @@ -10,27 +11,33 @@ msal, pandas, pytest-asyncio, + pytest-xdist, pytestCheckHook, python-dateutil, requests, - setuptools, + uv-build, }: buildPythonPackage rec { pname = "azure-kusto-data"; - version = "5.0.5"; + version = "6.0.1"; pyproject = true; src = fetchFromGitHub { owner = "Azure"; repo = "azure-kusto-python"; tag = "v${version}"; - hash = "sha256-DEHTxSvc6AeBMEJuAiDavFj2xVfPmWKpZBaZcpHWHak="; + hash = "sha256-ZwPF6YLb2w+Thds36UeQdx64SJqKHFXSQVv39YYQOHA="; }; sourceRoot = "${src.name}/${pname}"; - build-system = [ setuptools ]; + postPatch = '' + substituteInPlace pyproject.toml \ + --replace-fail "uv_build>=0.8.9,<0.9.0" uv_build + ''; + + build-system = [ uv-build ]; dependencies = [ azure-core @@ -50,7 +57,9 @@ buildPythonPackage rec { }; nativeCheckInputs = [ + aioresponses pytest-asyncio + pytest-xdist pytestCheckHook ] ++ lib.concatAttrValues optional-dependencies; @@ -66,7 +75,7 @@ buildPythonPackage rec { meta = { description = "Kusto Data Client"; - homepage = "https://pypi.org/project/azure-kusto-data/"; + homepage = "https://github.com/Azure/azure-kusto-python/tree/master/azure-kusto-data"; changelog = "https://github.com/Azure/azure-kusto-python/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ pyrox0 ];