1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
Gaetan Lepage 2024-09-15 13:26:44 +02:00
parent 8f75a9e571
commit 4e835ba3b4

View file

@ -2,37 +2,42 @@
lib,
buildPythonPackage,
fetchFromGitHub,
freezegun,
langchain,
# build-system
poetry-core,
# dependencies
langchain-core,
numpy,
pymongo,
freezegun,
httpx,
langchain,
lark,
pandas,
poetry-core,
pytest-asyncio,
pytestCheckHook,
pytest-mock,
pytest-socket,
pytestCheckHook,
pythonOlder,
requests-mock,
responses,
syrupy,
toml,
nix-update-script,
}:
buildPythonPackage rec {
pname = "langchain-mongodb";
version = "0.1.8";
version = "0.2.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langchain";
rev = "refs/tags/langchain-mongodb==${version}";
hash = "sha256-fjSvn9O/CrKBexcwuILXFR7AGx/tZtGDWjA0L6XV4Hk=";
hash = "sha256-Jd9toXkS9dGtSIrJQ/5W+swV1z2BJOJKBtkyGzj3oSc=";
};
sourceRoot = "${src.name}/libs/partners/mongodb";
@ -41,22 +46,18 @@ buildPythonPackage rec {
dependencies = [
langchain-core
numpy
pymongo
];
nativeCheckInputs = [
freezegun
httpx
langchain
lark
pandas
pytest-asyncio
pytest-mock
pytest-socket
pytestCheckHook
requests-mock
responses
pytest-mock
syrupy
toml
];
pytestFlagsArray = [ "tests/unit_tests" ];