python3Packages.e2b: init at 1.5.1
This commit is contained in:
63
pkgs/development/python-modules/e2b/default.nix
Normal file
63
pkgs/development/python-modules/e2b/default.nix
Normal file
@@ -0,0 +1,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 ];
|
||||
};
|
||||
}
|
||||
@@ -4379,6 +4379,8 @@ self: super: with self; {
|
||||
|
||||
dynd = callPackage ../development/python-modules/dynd { };
|
||||
|
||||
e2b = callPackage ../development/python-modules/e2b { };
|
||||
|
||||
e3-core = callPackage ../development/python-modules/e3-core { };
|
||||
|
||||
e3-testsuite = callPackage ../development/python-modules/e3-testsuite { };
|
||||
|
||||
Reference in New Issue
Block a user