evcc: 0.131.8 -> 0.131.10 (#364658)
[NixPkgs.git] / pkgs / development / python-modules / langchain-text-splitters / default.nix
blobaed23439349e1c0a20e07c80af49d3acdc6dd24e
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
6   # build-system
7   poetry-core,
9   # dependencies
10   langchain-core,
12   # tests
13   httpx,
14   pytest-asyncio,
15   pytestCheckHook,
18 buildPythonPackage rec {
19   pname = "langchain-text-splitters";
20   version = "0.3.2";
21   pyproject = true;
23   src = fetchFromGitHub {
24     owner = "langchain-ai";
25     repo = "langchain";
26     rev = "refs/tags/langchain-text-splitters==${version}";
27     hash = "sha256-TaK8lnPxKUqwvKLtQIfzg2l8McQ1fd0g9vocHM0+kjY=";
28   };
30   sourceRoot = "${src.name}/libs/text-splitters";
32   build-system = [ poetry-core ];
34   dependencies = [ langchain-core ];
36   pythonImportsCheck = [ "langchain_text_splitters" ];
38   nativeCheckInputs = [
39     httpx
40     pytest-asyncio
41     pytestCheckHook
42   ];
44   pytestFlagsArray = [ "tests/unit_tests" ];
46   passthru = {
47     inherit (langchain-core) updateScript;
48   };
50   meta = {
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; [
56       fab
57       sarahec
58     ];
59   };