mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
python3Packages.langchain-text-splitters: 0.0.2 -> 0.2.0
Diff: https://github.com/langchain-ai/langchain/compare/refs/tags/langchain-text-splitters==0.0.2...langchain-text-splitters==0.2.0
This commit is contained in:
parent
daec3817ea
commit
3f5b5e6ee6
1 changed files with 20 additions and 14 deletions
|
@ -1,38 +1,43 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchPypi,
|
fetchFromGitHub,
|
||||||
poetry-core,
|
poetry-core,
|
||||||
langchain-core,
|
langchain-core,
|
||||||
lxml,
|
pytest-asyncio,
|
||||||
|
pytestCheckHook,
|
||||||
pythonOlder,
|
pythonOlder,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "langchain-text-splitters";
|
pname = "langchain-text-splitters";
|
||||||
version = "0.0.2";
|
version = "0.2.0";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.9";
|
disabled = pythonOlder "3.9";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
pname = "langchain_text_splitters";
|
owner = "langchain-ai";
|
||||||
inherit version;
|
repo = "langchain";
|
||||||
hash = "sha256-rIkn3AugjrpwL2lhye19986tjeGan3EBqyteo0IBs8E=";
|
rev = "refs/tags/langchain-text-splitters==${version}";
|
||||||
|
hash = "sha256-QrgZ0j/YdOgEgLeQNSKjOIwqdr/Izuw9Gh6eKQ/00tQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sourceRoot = "${src.name}/libs/text-splitters";
|
||||||
|
|
||||||
build-system = [ poetry-core ];
|
build-system = [ poetry-core ];
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [ langchain-core ];
|
||||||
langchain-core
|
|
||||||
lxml
|
|
||||||
];
|
|
||||||
|
|
||||||
# PyPI source does not have tests
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
pythonImportsCheck = [ "langchain_text_splitters" ];
|
pythonImportsCheck = [ "langchain_text_splitters" ];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [ "tests/unit_tests" ];
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
inherit (langchain-core) updateScript;
|
inherit (langchain-core) updateScript;
|
||||||
};
|
};
|
||||||
|
@ -40,6 +45,7 @@ buildPythonPackage rec {
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Build context-aware reasoning applications";
|
description = "Build context-aware reasoning applications";
|
||||||
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/text-splitters";
|
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/text-splitters";
|
||||||
|
changelog = "https://github.com/langchain-ai/langchain/releases/tag/${src.rev}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue