blob: fcfcbee0ba9dfb0f2f5b4059a3f26a0668663a59 (
plain)
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
|
{
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 ];
};
})
|