blob: 33f1ddd727c6ba6fbd3ed726f3c6d8930c449808 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatchling,
# dependencies
googleapis-common-protos,
grpcio,
protobuf,
# optional-dependencies
click,
# tests
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "cwsandbox";
version = "0.23.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "coreweave";
repo = "cwsandbox-client";
tag = "v${finalAttrs.version}";
hash = "sha256-y9rsuAXmpMok0ZqdLhAfavglXh5Hz4VPy1UByYMM1WA=";
};
build-system = [
hatchling
];
pythonRelaxDeps = [
"protobuf"
];
dependencies = [
googleapis-common-protos
grpcio
protobuf
];
optional-dependencies = {
cli = [
click
];
};
pythonImportsCheck = [ "cwsandbox" ];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
]
++ finalAttrs.passthru.optional-dependencies.cli;
disabledTests = [
# Failed: DID NOT RAISE any of (<class 'cwsandbox.exceptions.SandboxNotRunningError'>, <class 'cwsandbox.exceptions.SandboxTerminatedError'>)
"test_stop_while_waiting"
];
meta = {
description = "Python client library for CoreWeave Sandbox";
homepage = "https://github.com/coreweave/cwsandbox-client";
changelog = "https://github.com/coreweave/cwsandbox-client/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = with lib.licenses; [
asl20
bsd3
];
maintainers = with lib.maintainers; [ GaetanLepage ];
};
})
|