python311Packages.langchain: clean up test dependencies and fix build on darwin
This commit is contained in:
parent
743bbdec1f
commit
3dff06ecf6
@ -42,7 +42,6 @@
|
|||||||
, librosa
|
, librosa
|
||||||
, lxml
|
, lxml
|
||||||
, manifest-ml
|
, manifest-ml
|
||||||
, markdownify
|
|
||||||
, neo4j
|
, neo4j
|
||||||
, networkx
|
, networkx
|
||||||
, nlpcloud
|
, nlpcloud
|
||||||
@ -76,7 +75,6 @@
|
|||||||
, pytest-asyncio
|
, pytest-asyncio
|
||||||
, pytest-mock
|
, pytest-mock
|
||||||
, pytest-socket
|
, pytest-socket
|
||||||
, pytest-vcr
|
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, requests-mock
|
, requests-mock
|
||||||
, responses
|
, responses
|
||||||
@ -254,22 +252,22 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
freezegun
|
freezegun
|
||||||
markdownify
|
lark
|
||||||
pandas
|
pandas
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
pytest-mock
|
pytest-mock
|
||||||
pytest-socket
|
pytest-socket
|
||||||
pytest-vcr
|
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
requests-mock
|
requests-mock
|
||||||
responses
|
responses
|
||||||
syrupy
|
syrupy
|
||||||
toml
|
toml
|
||||||
] ++ passthru.optional-dependencies.all;
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
# integration_tests have many network, db access and require `OPENAI_API_KEY`, etc.
|
# integration_tests have many network, db access and require `OPENAI_API_KEY`, etc.
|
||||||
"tests/unit_tests"
|
"tests/unit_tests"
|
||||||
|
"--only-core"
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
@ -281,6 +279,10 @@ buildPythonPackage rec {
|
|||||||
"test_socket_disabled"
|
"test_socket_disabled"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"langchain"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Building applications with LLMs through composability";
|
description = "Building applications with LLMs through composability";
|
||||||
homepage = "https://github.com/hwchase17/langchain";
|
homepage = "https://github.com/hwchase17/langchain";
|
||||||
|
Loading…
Reference in New Issue
Block a user