diff options
Diffstat (limited to 'pkgs/development/python-modules/langchain-text-splitters/default.nix')
-rw-r--r-- | pkgs/development/python-modules/langchain-text-splitters/default.nix | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/langchain-text-splitters/default.nix b/pkgs/development/python-modules/langchain-text-splitters/default.nix index d24c177a07125..a19f3ceb7d7ef 100644 --- a/pkgs/development/python-modules/langchain-text-splitters/default.nix +++ b/pkgs/development/python-modules/langchain-text-splitters/default.nix @@ -2,36 +2,43 @@ lib, buildPythonPackage, fetchFromGitHub, + + # build-system poetry-core, + + # dependencies langchain-core, + + # tests + httpx, pytest-asyncio, pytestCheckHook, - pythonOlder, }: buildPythonPackage rec { pname = "langchain-text-splitters"; - version = "0.2.1"; + version = "0.3.0"; pyproject = true; - disabled = pythonOlder "3.9"; - src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; rev = "refs/tags/langchain-text-splitters==${version}"; - hash = "sha256-5le+P+7iGjrTetnTHiJilqtc7G7kJbZnEsUgFyF2aQ8="; + hash = "sha256-Z0UAUhOjC0wgCY/f1aWsnjFyOPYz/6JnloEKT6b6Ii0="; }; sourceRoot = "${src.name}/libs/text-splitters"; build-system = [ poetry-core ]; - dependencies = [ langchain-core ]; + dependencies = [ + langchain-core + ]; pythonImportsCheck = [ "langchain_text_splitters" ]; nativeCheckInputs = [ + httpx pytest-asyncio pytestCheckHook ]; @@ -43,9 +50,9 @@ buildPythonPackage rec { }; meta = { - description = "Build context-aware reasoning applications"; + changelog = "https://github.com/langchain-ai/langchain/releases/tag/langchain-text-splitters==${version}"; + description = "LangChain utilities for splitting into chunks a wide variety of text documents"; homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/text-splitters"; - changelog = "https://github.com/langchain-ai/langchain/releases/tag/${src.rev}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; }; |