1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 poetry-core,
6 langchain-core,
7 lxml,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "langchain-text-splitters";
13 version = "0.0.2";
14 pyproject = true;
15
16 disabled = pythonOlder "3.9";
17
18 src = fetchPypi {
19 pname = "langchain_text_splitters";
20 inherit version;
21 hash = "sha256-rIkn3AugjrpwL2lhye19986tjeGan3EBqyteo0IBs8E=";
22 };
23
24 build-system = [ poetry-core ];
25
26 dependencies = [
27 langchain-core
28 lxml
29 ];
30
31 # PyPI source does not have tests
32 doCheck = false;
33
34 pythonImportsCheck = [ "langchain_text_splitters" ];
35
36 meta = with lib; {
37 description = "Build context-aware reasoning applications";
38 homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/text-splitters";
39 license = licenses.mit;
40 maintainers = with maintainers; [ fab ];
41 };
42}