Skip to content

Commit d3b5aeb

Browse files
committed
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)
1 parent ef317dd commit d3b5aeb

File tree

1 file changed

+14
-8
lines changed
  • pkgs/development/python-modules/typed-settings

1 file changed

+14
-8
lines changed

pkgs/development/python-modules/typed-settings/default.nix

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@
1111
hypothesis,
1212
jinja2,
1313
pydantic,
14+
pytest-cov-stub,
1415
pytestCheckHook,
1516
pythonOlder,
17+
rich-click,
18+
sybil,
1619
tomli,
1720
typing-extensions,
1821
}:
@@ -21,7 +24,7 @@ buildPythonPackage rec {
2124
version = "24.6.0";
2225
pyproject = true;
2326

24-
disabled = pythonOlder "3.7";
27+
disabled = pythonOlder "3.9";
2528

2629
src = fetchPypi {
2730
pname = "typed_settings";
@@ -55,17 +58,20 @@ buildPythonPackage rec {
5558

5659
nativeBuildInputs = [ hatch-vcs ];
5760

58-
nativeCheckInputs = [
59-
hypothesis
60-
pytestCheckHook
61-
typing-extensions
62-
] ++ lib.flatten (builtins.attrValues optional-dependencies);
61+
nativeCheckInputs =
62+
[
63+
hypothesis
64+
pytest-cov-stub
65+
pytestCheckHook
66+
rich-click
67+
sybil
68+
]
69+
++ (lib.optional (pythonOlder "3.11") typing-extensions)
70+
++ (lib.flatten (lib.attrValues optional-dependencies));
6371

6472
pytestFlagsArray = [ "tests" ];
6573

6674
disabledTests = [
67-
# AssertionError: assert [OptionInfo(p...
68-
"test_deep_options"
6975
# 1Password CLI is not available
7076
"TestOnePasswordLoader"
7177
"test_handle_op"

0 commit comments

Comments
 (0)