Skip to content

Commit 7966d83

Browse files
authored
python312Packages.instructor: 1.5.0 -> 1.6.3 (#351795)
2 parents 14fc87c + fa9bc1d commit 7966d83

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

pkgs/development/python-modules/instructor/default.nix

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,20 @@
2424
jinja2,
2525
pytest-asyncio,
2626
pytestCheckHook,
27+
python-dotenv,
2728
redis,
2829
}:
2930

3031
buildPythonPackage rec {
3132
pname = "instructor";
32-
version = "1.5.0";
33+
version = "1.6.3";
3334
pyproject = true;
3435

3536
src = fetchFromGitHub {
3637
owner = "jxnl";
3738
repo = "instructor";
3839
rev = "refs/tags/${version}";
39-
hash = "sha256-UrLbKDaQu2ioQHqKKS8SdRTpQj+Z0w+bcLrRuZT3DC0=";
40+
hash = "sha256-L/7oErXu0U2G20pFfEReSKAK3P1BseybnPHazA7w6cM=";
4041
};
4142

4243
pythonRelaxDeps = [
@@ -67,6 +68,7 @@ buildPythonPackage rec {
6768
jinja2
6869
pytest-asyncio
6970
pytestCheckHook
71+
python-dotenv
7072
redis
7173
];
7274

@@ -89,9 +91,10 @@ buildPythonPackage rec {
8991
];
9092

9193
meta = {
94+
broken = lib.versionOlder pydantic.version "2"; # ImportError: cannot import name 'TypeAdapter' from 'pydantic'
9295
description = "Structured outputs for llm";
9396
homepage = "https://github.com/jxnl/instructor";
94-
changelog = "https://github.com/jxnl/instructor/releases/tag/v${version}";
97+
changelog = "https://github.com/jxnl/instructor/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
9598
license = lib.licenses.mit;
9699
maintainers = with lib.maintainers; [ mic92 ];
97100
mainProgram = "instructor";

0 commit comments

Comments
 (0)