Gaetan Lepage 2024-09-15 01:47:21 +02:00
parent f7d7fdc911
commit 5d4a97b025

View file

@ -2,39 +2,44 @@
lib, lib,
buildPythonPackage, buildPythonPackage,
fetchFromGitHub, fetchFromGitHub,
freezegun,
# build-system
poetry-core,
# dependencies
huggingface-hub, huggingface-hub,
langchain-core, langchain-core,
sentence-transformers, sentence-transformers,
tokenizers, tokenizers,
transformers, transformers,
# tests
freezegun,
httpx,
lark, lark,
pandas, pandas,
poetry-core,
pytest-asyncio, pytest-asyncio,
pytest-mock, pytest-mock,
pytest-socket, pytest-socket,
pytestCheckHook, pytestCheckHook,
pythonOlder,
requests-mock, requests-mock,
responses, responses,
syrupy, syrupy,
toml, toml,
nix-update-script, nix-update-script,
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "langchain-huggingface"; pname = "langchain-huggingface";
version = "0.0.3"; version = "0.1.0";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "langchain-ai"; owner = "langchain-ai";
repo = "langchain"; repo = "langchain";
rev = "refs/tags/langchain-huggingface==${version}"; rev = "refs/tags/langchain-huggingface==${version}";
hash = "sha256-4k3C6T2N7SBM/wP8KAwMQqt9DkXDdYNt2i/OkZilWw0="; hash = "sha256-ESWhhjWjCbBV/3KjeSwEQzvK6os1mmc3at+8gonfGt4=";
}; };
sourceRoot = "${src.name}/libs/partners/huggingface"; sourceRoot = "${src.name}/libs/partners/huggingface";
@ -51,6 +56,7 @@ buildPythonPackage rec {
nativeCheckInputs = [ nativeCheckInputs = [
freezegun freezegun
httpx
lark lark
pandas pandas
pytest-asyncio pytest-asyncio