From d3b5aeb96eb02506fe29b32fbc23322f5ba05e76 Mon Sep 17 00:00:00 2001 From: Mirko Lenz Date: Thu, 20 Feb 2025 14:57:21 +0100 Subject: [PATCH] typed-settings: fix build failure updated the package according to the latest information from upstream pyproject.toml: - disable for Python versions below 3.9 - add missing check inputs (that was the reason for the build failures) - require typing-extensions only for Python versions below 3.11 - enable test_deep_options again (this seems to pass now) --- .../python-modules/typed-settings/default.nix | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/typed-settings/default.nix b/pkgs/development/python-modules/typed-settings/default.nix index 0e5a812d98b9..b5d9cfdbb370 100644 --- a/pkgs/development/python-modules/typed-settings/default.nix +++ b/pkgs/development/python-modules/typed-settings/default.nix @@ -11,8 +11,11 @@ hypothesis, jinja2, pydantic, + pytest-cov-stub, pytestCheckHook, pythonOlder, + rich-click, + sybil, tomli, typing-extensions, }: @@ -21,7 +24,7 @@ buildPythonPackage rec { version = "24.6.0"; pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.9"; src = fetchPypi { pname = "typed_settings"; @@ -55,17 +58,20 @@ buildPythonPackage rec { nativeBuildInputs = [ hatch-vcs ]; - nativeCheckInputs = [ - hypothesis - pytestCheckHook - typing-extensions - ] ++ lib.flatten (builtins.attrValues optional-dependencies); + nativeCheckInputs = + [ + hypothesis + pytest-cov-stub + pytestCheckHook + rich-click + sybil + ] + ++ (lib.optional (pythonOlder "3.11") typing-extensions) + ++ (lib.flatten (lib.attrValues optional-dependencies)); pytestFlagsArray = [ "tests" ]; disabledTests = [ - # AssertionError: assert [OptionInfo(p... - "test_deep_options" # 1Password CLI is not available "TestOnePasswordLoader" "test_handle_op"