about summary refs log tree commit diff
path: root/pkgs/development/python-modules/langchain-text-splitters/default.nix
blob: 3f8fa837af7a3e07b6813f4cea3240c76371a3eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
  lib,
  buildPythonPackage,
  fetchPypi,
  poetry-core,
  langchain-core,
  lxml,
  pythonOlder,
}:

buildPythonPackage rec {
  pname = "langchain-text-splitters";
  version = "0.0.2";
  pyproject = true;

  disabled = pythonOlder "3.9";

  src = fetchPypi {
    pname = "langchain_text_splitters";
    inherit version;
    hash = "sha256-rIkn3AugjrpwL2lhye19986tjeGan3EBqyteo0IBs8E=";
  };

  build-system = [ poetry-core ];

  dependencies = [
    langchain-core
    lxml
  ];

  # PyPI source does not have tests
  doCheck = false;

  pythonImportsCheck = [ "langchain_text_splitters" ];

  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 ];
  };
}