python311Packages.langchain: clean up test dependencies and fix build on darwin

This commit is contained in:
natsukium 2023-11-11 15:32:30 +09:00
parent 743bbdec1f
commit 3dff06ecf6
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

@ -42,7 +42,6 @@
, librosa
, lxml
, manifest-ml
, markdownify
, neo4j
, networkx
, nlpcloud
@ -76,7 +75,6 @@
, pytest-asyncio
, pytest-mock
, pytest-socket
, pytest-vcr
, pytestCheckHook
, requests-mock
, responses
@ -254,22 +252,22 @@ buildPythonPackage rec {
nativeCheckInputs = [
freezegun
markdownify
lark
pandas
pytest-asyncio
pytest-mock
pytest-socket
pytest-vcr
pytestCheckHook
requests-mock
responses
syrupy
toml
] ++ passthru.optional-dependencies.all;
];
pytestFlagsArray = [
# integration_tests have many network, db access and require `OPENAI_API_KEY`, etc.
"tests/unit_tests"
"--only-core"
];
disabledTests = [
@ -281,6 +279,10 @@ buildPythonPackage rec {
"test_socket_disabled"
];
pythonImportsCheck = [
"langchain"
];
meta = with lib; {
description = "Building applications with LLMs through composability";
homepage = "https://github.com/hwchase17/langchain";