blob: b69af4f5ca000057f5c51f731f9fbfce07025da0 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# dependencies
attrs,
httpcore,
httpx,
packaging,
protobuf,
python-dateutil,
typing-extensions,
}:
buildPythonPackage rec {
pname = "e2b";
version = "1.5.1";
pyproject = true;
src = fetchFromGitHub {
owner = "e2b-dev";
repo = "E2B";
tag = "@e2b/python-sdk@${version}";
hash = "sha256-6THRc4rv/mzOWbsN1FpUu56kjvHvVBssK2glNoGdSzI=";
};
sourceRoot = "${src.name}/packages/python-sdk";
build-system = [
poetry-core
];
pythonRelaxDeps = [
"protobuf"
];
dependencies = [
attrs
httpcore
httpx
packaging
protobuf
python-dateutil
typing-extensions
];
pythonImportsCheck = [ "e2b" ];
# Tests require an API key
# e2b.exceptions.AuthenticationException: API key is required, please visit the Team tab at https://e2b.dev/dashboard to get your API key.
doCheck = false;
meta = {
description = "E2B SDK that give agents cloud environments";
homepage = "https://github.com/e2b-dev/E2B/blob/main/packages/python-sdk";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}
|