mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
python3Packages.langchain-community: 0.2.9 -> 0.2.7
This commit is contained in:
parent
52641877d1
commit
891efb2311
1 changed files with 14 additions and 5 deletions
|
@ -9,6 +9,7 @@
|
||||||
langchain,
|
langchain,
|
||||||
langchain-core,
|
langchain-core,
|
||||||
langsmith,
|
langsmith,
|
||||||
|
httpx,
|
||||||
lark,
|
lark,
|
||||||
numpy,
|
numpy,
|
||||||
pandas,
|
pandas,
|
||||||
|
@ -28,7 +29,7 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "langchain-community";
|
pname = "langchain-community";
|
||||||
version = "0.2.9";
|
version = "0.2.7";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
|
@ -36,12 +37,19 @@ buildPythonPackage rec {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "langchain-ai";
|
owner = "langchain-ai";
|
||||||
repo = "langchain";
|
repo = "langchain";
|
||||||
rev = "refs/tags/langchain-core==${version}";
|
rev = "refs/tags/langchain-community==${version}";
|
||||||
hash = "sha256-/BUn/NxaE9l3VY6dPshr1JJaHTGzn9NMQhSQ2De65Jg=";
|
hash = "sha256-r0YSJkYPcwjHyw1xST5Zrgg9USjN9GOsvhV97imSFCQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
sourceRoot = "${src.name}/libs/community";
|
sourceRoot = "${src.name}/libs/community";
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
ln -s ${src}/libs/standard-tests/langchain_standard_tests ./langchain_standard_tests
|
||||||
|
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace-fail "path = \"../standard-tests\"" "path = \"./langchain_standard_tests\""
|
||||||
|
'';
|
||||||
|
|
||||||
build-system = [ poetry-core ];
|
build-system = [ poetry-core ];
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
@ -57,13 +65,14 @@ buildPythonPackage rec {
|
||||||
tenacity
|
tenacity
|
||||||
];
|
];
|
||||||
|
|
||||||
passthru.optional-dependencies = {
|
optional-dependencies = {
|
||||||
cli = [ typer ];
|
cli = [ typer ];
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonImportsCheck = [ "langchain_community" ];
|
pythonImportsCheck = [ "langchain_community" ];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
|
httpx
|
||||||
lark
|
lark
|
||||||
pandas
|
pandas
|
||||||
pytest-asyncio
|
pytest-asyncio
|
||||||
|
@ -93,9 +102,9 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
changelog = "https://github.com/langchain-ai/langchain/releases/tag/langchain-community==${version}";
|
||||||
description = "Community contributed LangChain integrations";
|
description = "Community contributed LangChain integrations";
|
||||||
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/community";
|
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/community";
|
||||||
changelog = "https://github.com/langchain-ai/langchain/releases/tag/v${version}";
|
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = with lib.maintainers; [ natsukium ];
|
maintainers = with lib.maintainers; [ natsukium ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue