Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at lanzaboote 65 lines 1.3 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, freezegun 5, poetry-core 6, pydantic 7, pytest-asyncio 8, pytestCheckHook 9, pythonOlder 10, requests 11}: 12 13buildPythonPackage rec { 14 pname = "langsmith"; 15 version = "0.0.49"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchFromGitHub { 21 owner = "langchain-ai"; 22 repo = "langsmith-sdk"; 23 rev = "refs/tags/v${version}"; 24 hash = "sha256-vOa9FNzeJB8QgJ6FW+4vxNfDnBbrKtByIwW3sGP8/ho="; 25 }; 26 27 sourceRoot = "${src.name}/python"; 28 29 nativeBuildInputs = [ 30 poetry-core 31 ]; 32 33 propagatedBuildInputs = [ 34 pydantic 35 requests 36 ]; 37 38 nativeCheckInputs = [ 39 freezegun 40 pytest-asyncio 41 pytestCheckHook 42 ]; 43 44 disabledTests = [ 45 # These tests require network access 46 "integration_tests" 47 ]; 48 49 disabledTestPaths = [ 50 # due to circular import 51 "tests/integration_tests/test_client.py" 52 ]; 53 54 pythonImportsCheck = [ 55 "langsmith" 56 ]; 57 58 meta = with lib; { 59 description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform"; 60 homepage = "https://github.com/langchain-ai/langsmith-sdk"; 61 changelog = "https://github.com/langchain-ai/langsmith-sdk/releases/tag/v${version}"; 62 license = licenses.mit; 63 maintainers = with maintainers; [ natsukium ]; 64 }; 65}