Merge pull request #304999 from fabaff/langsmith-fix

python311Packages.langsmith: attr is linux-only
This commit is contained in:
Fabian Affolter 2024-04-18 13:01:45 +02:00 committed by GitHub
commit 2ca1c3483a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 17 additions and 7 deletions

View file

@ -18,7 +18,7 @@
buildPythonPackage rec {
pname = "langchain-community";
version = "0.0.32";
version = "0.0.33";
pyproject = true;
disabled = pythonOlder "3.8";
@ -26,7 +26,7 @@ buildPythonPackage rec {
src = fetchPypi {
pname = "langchain_community";
inherit version;
hash = "sha256-FRAhfWRsg4D1TphQNR9tKgsN1zxQG2Zsb0tAuqgWCyk=";
hash = "sha256-u1bbwe8RygnyWEaOETaHga3akhnhRAc+MM2mlJbTQrI=";
};
build-system = [ poetry-core ];

View file

@ -17,7 +17,7 @@
buildPythonPackage rec {
pname = "langchain-core";
version = "0.1.43";
version = "0.1.44";
pyproject = true;
disabled = pythonOlder "3.8";
@ -25,7 +25,7 @@ buildPythonPackage rec {
src = fetchPypi {
pname = "langchain_core";
inherit version;
hash = "sha256-SZEz+two7899JDBiNlIVGAgLsQ/Yv290Jt5KK78q67U=";
hash = "sha256-4xOXXZrikmNC5vKtdgM40x8YsSI+m4tNxAja7q3kaoM=";
};
pythonRelaxDeps = [

View file

@ -1,9 +1,12 @@
{
lib,
stdenv,
attr,
buildPythonPackage,
fastapi,
fetchFromGitHub,
freezegun,
httpx,
orjson,
poetry-core,
pydantic,
@ -12,11 +15,12 @@
pythonOlder,
pythonRelaxDepsHook,
requests,
uvicorn,
}:
buildPythonPackage rec {
pname = "langsmith";
version = "0.1.45";
version = "0.1.48";
pyproject = true;
disabled = pythonOlder "3.8";
@ -25,7 +29,7 @@ buildPythonPackage rec {
owner = "langchain-ai";
repo = "langsmith-sdk";
rev = "refs/tags/v${version}";
hash = "sha256-8A9wqhM8U5Q8o0uMyu+LQKhV+1Nsyg4opJjwylc6kkI=";
hash = "sha256-n24rlulncJHNyHFqszEbALGfnT7+tTGjLjwR7Fw1smI=";
};
sourceRoot = "${src.name}/python";
@ -44,10 +48,14 @@ buildPythonPackage rec {
];
nativeCheckInputs = [
attr
fastapi
freezegun
httpx
pytest-asyncio
pytestCheckHook
uvicorn
] ++ lib.optionals stdenv.isLinux [
attr
];
disabledTests = [
@ -71,6 +79,8 @@ buildPythonPackage rec {
# due to circular import
"tests/integration_tests/test_client.py"
"tests/unit_tests/test_client.py"
# Tests require a Langsmith API key
"tests/evaluation/test_evaluation.py"
];
pythonImportsCheck = [ "langsmith" ];