From 3b656baab6bcbf1f8924cb6df0f288cd1914f598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 27 Oct 2024 19:06:57 -0700 Subject: [PATCH 1/2] python312Packages.instructor: 1.5.0 -> 1.6.3 Diff: https://github.com/jxnl/instructor/compare/refs/tags/1.5.0...1.6.3 Changelog: https://github.com/jxnl/instructor/releases/tag/1.5.1 https://github.com/jxnl/instructor/releases/tag/1.5.2 https://github.com/jxnl/instructor/releases/tag/1.6.0 https://github.com/jxnl/instructor/releases/tag/1.6.1 https://github.com/jxnl/instructor/releases/tag/1.6.2 https://github.com/jxnl/instructor/releases/tag/1.6.3 --- pkgs/development/python-modules/instructor/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/instructor/default.nix b/pkgs/development/python-modules/instructor/default.nix index b6b51142e80e..f790aca3c668 100644 --- a/pkgs/development/python-modules/instructor/default.nix +++ b/pkgs/development/python-modules/instructor/default.nix @@ -24,19 +24,20 @@ jinja2, pytest-asyncio, pytestCheckHook, + python-dotenv, redis, }: buildPythonPackage rec { pname = "instructor"; - version = "1.5.0"; + version = "1.6.3"; pyproject = true; src = fetchFromGitHub { owner = "jxnl"; repo = "instructor"; rev = "refs/tags/${version}"; - hash = "sha256-UrLbKDaQu2ioQHqKKS8SdRTpQj+Z0w+bcLrRuZT3DC0="; + hash = "sha256-L/7oErXu0U2G20pFfEReSKAK3P1BseybnPHazA7w6cM="; }; pythonRelaxDeps = [ @@ -67,6 +68,7 @@ buildPythonPackage rec { jinja2 pytest-asyncio pytestCheckHook + python-dotenv redis ]; @@ -91,7 +93,7 @@ buildPythonPackage rec { meta = { description = "Structured outputs for llm"; homepage = "https://github.com/jxnl/instructor"; - changelog = "https://github.com/jxnl/instructor/releases/tag/v${version}"; + changelog = "https://github.com/jxnl/instructor/releases/tag/${lib.removePrefix "refs/tags/" src.rev}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ mic92 ]; mainProgram = "instructor"; From fa9bc1d9bbb0d815abcfb3b4c4212e6c4c8926c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Sun, 27 Oct 2024 19:13:25 -0700 Subject: [PATCH 2/2] python312Packages.instructor: mark broken with pydantic_1 --- pkgs/development/python-modules/instructor/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/instructor/default.nix b/pkgs/development/python-modules/instructor/default.nix index f790aca3c668..af7c9581e7eb 100644 --- a/pkgs/development/python-modules/instructor/default.nix +++ b/pkgs/development/python-modules/instructor/default.nix @@ -91,6 +91,7 @@ buildPythonPackage rec { ]; meta = { + broken = lib.versionOlder pydantic.version "2"; # ImportError: cannot import name 'TypeAdapter' from 'pydantic' description = "Structured outputs for llm"; homepage = "https://github.com/jxnl/instructor"; changelog = "https://github.com/jxnl/instructor/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";