Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.9 kB · 97 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798{ 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.0"; pyproject = true;
src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; tag = "langchain-huggingface==${version}"; hash = "sha256-+7fxCw4YYyfXwXw30lf1Xb01aj01C6X0B5yUrNPQzNY="; };
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.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 ]; };}