Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.2 kB · 105 lines
Nix
at gcc-offload
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106{ lib, stdenv, buildPythonPackage, fetchFromGitHub,
# build-system poetry-core,
# dependencies httpx, orjson, pydantic, requests, requests-toolbelt,
# tests anthropic, dataclasses-json, fastapi, freezegun, instructor, pytest-asyncio, pytestCheckHook, uvicorn, attr,}:
buildPythonPackage rec { pname = "langsmith"; version = "0.1.147"; pyproject = true;
src = fetchFromGitHub { owner = "langchain-ai"; repo = "langsmith-sdk"; rev = "refs/tags/v${version}"; hash = "sha256-d0PJaC1MhVS3i4AtXUjSkkq/Yj2Pi42H/cW/XML/94o="; };
sourceRoot = "${src.name}/python";
pythonRelaxDeps = [ "orjson" ];
build-system = [ poetry-core ];
dependencies = [ httpx orjson pydantic requests requests-toolbelt ];
nativeCheckInputs = [ anthropic dataclasses-json fastapi freezegun instructor pytest-asyncio pytestCheckHook uvicorn ] ++ lib.optionals stdenv.hostPlatform.isLinux [ attr ];
disabledTests = [ # These tests require network access "integration_tests" # due to circular import "test_as_runnable" "test_as_runnable_batch" "test_as_runnable_async" "test_as_runnable_async_batch" # Test requires git repo "test_git_info" # Tests require OpenAI API key "test_chat_async_api" "test_chat_sync_api" "test_completions_async_api" "test_completions_sync_api" ];
disabledTestPaths = [ # due to circular import "tests/integration_tests/test_client.py" "tests/integration_tests/test_prompts.py" "tests/unit_tests/test_client.py" # Tests require a Langsmith API key "tests/evaluation/test_evaluation.py" "tests/external/test_instructor_evals.py" ];
pythonImportsCheck = [ "langsmith" ];
__darwinAllowLocalNetworking = true;
meta = { description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform"; homepage = "https://github.com/langchain-ai/langsmith-sdk"; changelog = "https://github.com/langchain-ai/langsmith-sdk/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ natsukium ]; mainProgram = "langsmith"; };}