2024-05-16 10:12:14 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
poetry-core,
|
|
|
|
langchain-core,
|
|
|
|
lxml,
|
|
|
|
pythonOlder,
|
2024-03-04 09:35:52 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "langchain-text-splitters";
|
2024-05-16 10:11:31 +02:00
|
|
|
version = "0.0.2";
|
2024-03-04 09:35:52 +01:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "langchain_text_splitters";
|
|
|
|
inherit version;
|
2024-05-16 10:11:31 +02:00
|
|
|
hash = "sha256-rIkn3AugjrpwL2lhye19986tjeGan3EBqyteo0IBs8E=";
|
2024-03-04 09:35:52 +01:00
|
|
|
};
|
|
|
|
|
2024-05-16 10:12:14 +02:00
|
|
|
build-system = [ poetry-core ];
|
2024-03-04 09:35:52 +01:00
|
|
|
|
2024-05-16 10:11:59 +02:00
|
|
|
dependencies = [
|
2024-03-04 09:35:52 +01:00
|
|
|
langchain-core
|
|
|
|
lxml
|
|
|
|
];
|
|
|
|
|
|
|
|
# PyPI source does not have tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-05-16 10:12:14 +02:00
|
|
|
pythonImportsCheck = [ "langchain_text_splitters" ];
|
2024-03-04 09:35:52 +01:00
|
|
|
|
2024-05-24 10:29:56 +09:00
|
|
|
passthru = {
|
|
|
|
inherit (langchain-core) updateScript;
|
|
|
|
};
|
|
|
|
|
2024-03-04 09:35:52 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Build context-aware reasoning applications";
|
|
|
|
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/text-splitters";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|