Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 88 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889{ lib, buildPythonPackage, fetchFromGitHub,
# build-system pdm-backend,
# dependencies httpx, langchain-core, syrupy, pytest-benchmark, pytest-codspeed, pytest-recording, vcrpy,
# buildInputs pytest,
# tests numpy, pytest-asyncio, pytest-socket, pytestCheckHook,
# passthru gitUpdater,}:
buildPythonPackage rec { pname = "langchain-tests"; version = "0.3.20"; pyproject = true;
src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; tag = "langchain-tests==${version}"; hash = "sha256-RMuxWA/n8d71FReFKO3Y/5P0MYk4aZ5WU2/TRxf9UuE="; };
sourceRoot = "${src.name}/libs/standard-tests";
build-system = [ pdm-backend ];
pythonRelaxDeps = [ # Each component release requests the exact latest core. # That prevents us from updating individual components. "langchain-core" "numpy" ];
dependencies = [ httpx langchain-core pytest-asyncio pytest-benchmark pytest-codspeed pytest-recording pytest-socket syrupy vcrpy ];
buildInputs = [ pytest ];
pythonImportsCheck = [ "langchain_tests" ];
nativeBuildInputs = [ numpy pytestCheckHook ];
passthru.updateScript = gitUpdater { rev-prefix = "langchain-tests=="; };
meta = { description = "Build context-aware reasoning applications"; homepage = "https://github.com/langchain-ai/langchain"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ natsukium sarahec ]; };}