From 6b460e9e9b8c7d21bc8ddefacec0646fc6636ded Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Mon, 2 Jun 2025 05:56:30 +0200 Subject: [PATCH] python313Packages.langchain-openai: migrate to pytest-cov-stub --- .../python-modules/langchain-openai/default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/langchain-openai/default.nix b/pkgs/development/python-modules/langchain-openai/default.nix index 537520d435ee..aaf389c2fc7f 100644 --- a/pkgs/development/python-modules/langchain-openai/default.nix +++ b/pkgs/development/python-modules/langchain-openai/default.nix @@ -17,6 +17,7 @@ lark, pandas, pytest-asyncio, + pytest-cov-stub, pytestCheckHook, pytest-mock, pytest-socket, @@ -43,11 +44,6 @@ buildPythonPackage rec { sourceRoot = "${src.name}/libs/partners/openai"; - preConfigure = '' - substituteInPlace pyproject.toml \ - --replace-fail "--cov=langchain_openai" "" - ''; - build-system = [ pdm-backend ]; pythonRelaxDeps = [ @@ -68,6 +64,7 @@ buildPythonPackage rec { lark pandas pytest-asyncio + pytest-cov-stub pytestCheckHook pytest-mock pytest-socket