18 buildPythonPackage rec {
19 pname = "langchain-text-splitters";
23 src = fetchFromGitHub {
24 owner = "langchain-ai";
26 rev = "refs/tags/langchain-text-splitters==${version}";
27 hash = "sha256-TaK8lnPxKUqwvKLtQIfzg2l8McQ1fd0g9vocHM0+kjY=";
30 sourceRoot = "${src.name}/libs/text-splitters";
32 build-system = [ poetry-core ];
34 dependencies = [ langchain-core ];
36 pythonImportsCheck = [ "langchain_text_splitters" ];
44 pytestFlagsArray = [ "tests/unit_tests" ];
47 inherit (langchain-core) updateScript;
51 changelog = "https://github.com/langchain-ai/langchain/releases/tag/langchain-text-splitters==${version}";
52 description = "LangChain utilities for splitting into chunks a wide variety of text documents";
53 homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/text-splitters";
54 license = lib.licenses.mit;
55 maintainers = with lib.maintainers; [