Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling,
# dependencies googleapis-common-protos, grpcio, protobuf,
# optional-dependencies click,
# tests pytest-asyncio, pytest-dotenv, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "cwsandbox"; version = "1.7.0"; pyproject = true; __structuredAttrs = true;
src = fetchFromGitHub { owner = "coreweave"; repo = "cwsandbox-client"; tag = "v${finalAttrs.version}"; hash = "sha256-D8Mklp9XKRWgVf8OCBZSfX7pngfBlG3jN1DasAQkVFg="; };
build-system = [ hatchling ];
pythonRelaxDeps = [ "protobuf" ]; dependencies = [ googleapis-common-protos grpcio protobuf ];
optional-dependencies = { cli = [ click ]; };
pythonImportsCheck = [ "cwsandbox" ];
nativeCheckInputs = [ pytest-asyncio pytest-dotenv 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 ]; };})