{ lib, buildPythonPackage, caido-server-auth, fetchPypi, gql, nix-update-script, pydantic, semver, uv-build, pytestCheckHook, pytest-asyncio, }: buildPythonPackage (finalAttrs: { pname = "caido-sdk-client"; version = "0.3.1"; pyproject = true; __structuredAttrs = true; src = fetchPypi { pname = "caido_sdk_client"; inherit (finalAttrs) version; hash = "sha256-9jvd49QePhboxtHDDyWcumliNLX8n2bfOjNjcZWLKDs="; }; postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "uv_build>=0.9.8,<0.10.0" "uv_build" ''; build-system = [ uv-build ]; dependencies = [ caido-server-auth gql pydantic semver ] ++ gql.optional-dependencies.aiohttp ++ gql.optional-dependencies.websockets; pythonImportsCheck = [ "caido_sdk_client" ]; nativeCheckInputs = [ pytestCheckHook pytest-asyncio ]; passthru.updateScript = nix-update-script { }; meta = { description = "Client SDK for interacting with a Caido instance"; homepage = "https://pypi.org/project/caido-sdk-client"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; })