Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.0 kB · 101 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102{ lib, buildPythonPackage, fetchFromGitHub,
# build-system pdm-backend,
# dependencies huggingface-hub, langchain-core, sentence-transformers, tokenizers, transformers,
# tests freezegun, httpx, lark, pandas, pytest-asyncio, pytest-mock, pytest-socket, pytestCheckHook, requests-mock, responses, syrupy, toml,
# passthru gitUpdater,}:
buildPythonPackage rec { pname = "langchain-huggingface"; version = "0.3.1"; pyproject = true;
src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; tag = "langchain-huggingface==${version}"; hash = "sha256-nae7KwCKjkvenOO8vErxFQStHolc+N8EUuK6U8r48Kc="; };
sourceRoot = "${src.name}/libs/partners/huggingface";
build-system = [ pdm-backend ];
pythonRelaxDeps = [ # Each component release requests the exact latest core. # That prevents us from updating individual components. "langchain-core" ];
dependencies = [ huggingface-hub langchain-core sentence-transformers tokenizers transformers ];
nativeCheckInputs = [ freezegun httpx lark pandas pytest-asyncio pytest-mock pytest-socket pytestCheckHook requests-mock responses syrupy toml ];
enabledTestPaths = [ "tests/unit_tests" ];
pythonImportsCheck = [ "langchain_huggingface" ];
passthru = { # python updater script sets the wrong tag skipBulkUpdate = true; updateScript = gitUpdater { rev-prefix = "langchain-huggingface=="; }; };
meta = { changelog = "https://github.com/langchain-ai/langchain/releases/tag/${src.tag}"; description = "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 sarahec ]; };}