lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python312Packages.langchain-chroma: fix broken tests

+24 -2
+13
pkgs/development/python-modules/langchain-chroma/001-async-test.patch
··· 1 + diff --git a/libs/partners/chroma/tests/integration_tests/test_vectorstores.py b/libs/partners/chroma/tests/integration_tests/test_vectorstores.py 2 + index 382b24cb5..f99a34112 100644 3 + --- a/tests/integration_tests/test_vectorstores.py 4 + +++ b/tests/integration_tests/test_vectorstores.py 5 + @@ -36,7 +36,7 @@ def test_chroma() -> None: 6 + 7 + assert output == [Document(page_content="foo")] 8 + 9 + - 10 + +@pytest.mark.asyncio 11 + async def test_chroma_async() -> None: 12 + """Test end to end construction and search.""" 13 + texts = ["foo", "bar", "baz"]
+11 -2
pkgs/development/python-modules/langchain-chroma/default.nix
··· 7 7 numpy, 8 8 poetry-core, 9 9 pytestCheckHook, 10 + pytest-asyncio, 10 11 }: 11 12 12 13 buildPythonPackage rec { ··· 23 24 24 25 sourceRoot = "${src.name}/libs/partners/chroma"; 25 26 27 + patches = [ ./001-async-test.patch ]; 28 + 26 29 build-system = [ poetry-core ]; 27 30 28 31 pythonRelaxDeps = [ "chromadb" ]; ··· 35 38 36 39 pythonImportsCheck = [ "langchain_chroma" ]; 37 40 38 - nativeCheckInputs = [ pytestCheckHook ]; 41 + nativeCheckInputs = [ 42 + pytest-asyncio 43 + pytestCheckHook 44 + ]; 39 45 40 46 passthru = { 41 47 inherit (langchain-core) updateScript; ··· 46 52 description = "Integration package connecting Chroma and LangChain"; 47 53 homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/partners/chroma"; 48 54 license = lib.licenses.mit; 49 - maintainers = with lib.maintainers; [ natsukium ]; 55 + maintainers = with lib.maintainers; [ 56 + natsukium 57 + sarahec 58 + ]; 50 59 }; 51 60 }