mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-18 23:50:07 +03:00
python3Packages.langchain-huggingface: init at 0.0.3
This commit is contained in:
parent
409ebb1506
commit
a1a98a0502
2 changed files with 82 additions and 0 deletions
|
@ -0,0 +1,80 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
buildPythonPackage,
|
||||||
|
fetchFromGitHub,
|
||||||
|
freezegun,
|
||||||
|
huggingface-hub,
|
||||||
|
langchain-core,
|
||||||
|
sentence-transformers,
|
||||||
|
tokenizers,
|
||||||
|
transformers,
|
||||||
|
lark,
|
||||||
|
pandas,
|
||||||
|
poetry-core,
|
||||||
|
pytest-asyncio,
|
||||||
|
pytest-mock,
|
||||||
|
pytest-socket,
|
||||||
|
pytestCheckHook,
|
||||||
|
pythonOlder,
|
||||||
|
requests-mock,
|
||||||
|
responses,
|
||||||
|
syrupy,
|
||||||
|
toml,
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "langchain-huggingface";
|
||||||
|
version = "0.0.3";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "langchain-ai";
|
||||||
|
repo = "langchain";
|
||||||
|
rev = "refs/tags/langchain-huggingface==${version}";
|
||||||
|
hash = "sha256-4k3C6T2N7SBM/wP8KAwMQqt9DkXDdYNt2i/OkZilWw0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
sourceRoot = "${src.name}/libs/partners/huggingface";
|
||||||
|
|
||||||
|
build-system = [ poetry-core ];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
huggingface-hub
|
||||||
|
langchain-core
|
||||||
|
sentence-transformers
|
||||||
|
tokenizers
|
||||||
|
transformers
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeCheckInputs = [
|
||||||
|
freezegun
|
||||||
|
lark
|
||||||
|
pandas
|
||||||
|
pytest-asyncio
|
||||||
|
pytest-mock
|
||||||
|
pytest-socket
|
||||||
|
pytestCheckHook
|
||||||
|
requests-mock
|
||||||
|
responses
|
||||||
|
syrupy
|
||||||
|
toml
|
||||||
|
];
|
||||||
|
|
||||||
|
pytestFlagsArray = [ "tests/unit_tests" ];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "langchain_huggingface" ];
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = langchain-core.updateScript;
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
changelog = "https://github.com/langchain-ai/langchain/releases/tag/langchain-huggingface==${version}";
|
||||||
|
description = "An integration package connecting Huggingface related classes and LangChain";
|
||||||
|
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/partners/huggingface";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ natsukium ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -6634,6 +6634,8 @@ self: super: with self; {
|
||||||
|
|
||||||
langchain-core = callPackage ../development/python-modules/langchain-core { };
|
langchain-core = callPackage ../development/python-modules/langchain-core { };
|
||||||
|
|
||||||
|
langchain-huggingface = callPackage ../development/python-modules/langchain-huggingface { };
|
||||||
|
|
||||||
langchain-openai = callPackage ../development/python-modules/langchain-openai { };
|
langchain-openai = callPackage ../development/python-modules/langchain-openai { };
|
||||||
|
|
||||||
langchain-text-splitters = callPackage ../development/python-modules/langchain-text-splitters { };
|
langchain-text-splitters = callPackage ../development/python-modules/langchain-text-splitters { };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue