From 22a7bb86a15f07723a3f918ed7899f62de4e5e6f Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 20 Nov 2025 06:31:22 +0000 Subject: [PATCH] python3Packages.msgspec.optional-dependencies: fix the eval MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without the change the eval fails on `master` as: $ nix-instantiate -A python3Packages.msgspec.optional-dependencies error: … while evaluating the attribute 'dev' at pkgs/development/python-modules/msgspec/default.nix:45:5: 44| optional-dependencies = { 45| dev = [ | ^ 46| coverage … while evaluating the attribute 'test' at pkgs/development/python-modules/msgspec/default.nix:60:5: 59| ]; 60| test = [ | ^ 61| attrs (stack trace truncated; use '--show-trace' to show the full, detailed trace) error: expected a string but found a float: 3.11 --- pkgs/development/python-modules/msgspec/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/msgspec/default.nix b/pkgs/development/python-modules/msgspec/default.nix index 9ed38523bc29..5ef6bbfb4ce2 100644 --- a/pkgs/development/python-modules/msgspec/default.nix +++ b/pkgs/development/python-modules/msgspec/default.nix @@ -67,7 +67,7 @@ buildPythonPackage rec { toml = [ tomli-w ] - ++ lib.optional (pythonOlder 3.11) tomli; + ++ lib.optional (pythonOlder "3.11") tomli; yaml = [ pyyaml ]; };