these 4 derivations will be built: /nix/store/lrvpy2x9y4lald63bsr57lfgmjx3qaqb-toml-sort-0.24.4.drv /nix/store/xcw186h3jfy1p3l2b1vdiyzan78rl6am-treefmt.toml.drv /nix/store/42lhb4pnqi7q5hay4bhhy660sq6l49xk-treefmt.drv /nix/store/hyvrhnw7l54rc70lnbirqbp25gypy05d-treefmt-check.drv building '/nix/store/lrvpy2x9y4lald63bsr57lfgmjx3qaqb-toml-sort-0.24.4.drv' on 'ssh-ng://nix@cortana' building '/nix/store/lrvpy2x9y4lald63bsr57lfgmjx3qaqb-toml-sort-0.24.4.drv' toml-sort-0.24.4> structuredAttrs is enabled toml-sort-0.24.4> Sourcing python-remove-tests-dir-hook toml-sort-0.24.4> Sourcing python-catch-conflicts-hook.sh toml-sort-0.24.4> Sourcing python-remove-bin-bytecode-hook.sh toml-sort-0.24.4> Sourcing pypa-build-hook toml-sort-0.24.4> Using pypaBuildPhase toml-sort-0.24.4> Sourcing python-runtime-deps-check-hook toml-sort-0.24.4> Using pythonRuntimeDepsCheckHook toml-sort-0.24.4> Sourcing pypa-install-hook toml-sort-0.24.4> Using pypaInstallPhase toml-sort-0.24.4> Sourcing python-imports-check-hook.sh toml-sort-0.24.4> Using pythonImportsCheckPhase toml-sort-0.24.4> Sourcing python-namespaces-hook toml-sort-0.24.4> Sourcing python-catch-conflicts-hook.sh toml-sort-0.24.4> Sourcing pytest-check-hook toml-sort-0.24.4> Using pytestCheckPhase toml-sort-0.24.4> Running phase: unpackPhase toml-sort-0.24.4> unpacking source archive /nix/store/q0195y40sagkhxs4bfsalinkx3wv3yk7-source toml-sort-0.24.4> source root is source toml-sort-0.24.4> setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/toml_sort/tomlsort.py" toml-sort-0.24.4> Running phase: patchPhase toml-sort-0.24.4> Running phase: updateAutotoolsGnuConfigScriptsPhase toml-sort-0.24.4> Running phase: configurePhase toml-sort-0.24.4> no configure script, doing nothing toml-sort-0.24.4> Running phase: buildPhase toml-sort-0.24.4> Executing pypaBuildPhase toml-sort-0.24.4> Creating a wheel... toml-sort-0.24.4> pypa build flags: --no-isolation --outdir dist/ --wheel toml-sort-0.24.4> * Getting build dependencies for wheel... toml-sort-0.24.4> * Building wheel... toml-sort-0.24.4> Successfully built toml_sort-0.24.4-py3-none-any.whl toml-sort-0.24.4> Finished creating a wheel... toml-sort-0.24.4> Finished executing pypaBuildPhase toml-sort-0.24.4> Running phase: pythonRuntimeDepsCheckHook toml-sort-0.24.4> Executing pythonRuntimeDepsCheck toml-sort-0.24.4> Checking runtime dependencies for toml_sort-0.24.4-py3-none-any.whl toml-sort-0.24.4> Finished executing pythonRuntimeDepsCheck toml-sort-0.24.4> Running phase: installPhase toml-sort-0.24.4> Executing pypaInstallPhase toml-sort-0.24.4> Successfully installed toml_sort-0.24.4-py3-none-any.whl toml-sort-0.24.4> Finished executing pypaInstallPhase toml-sort-0.24.4> Running phase: pythonOutputDistPhase toml-sort-0.24.4> Executing pythonOutputDistPhase toml-sort-0.24.4> Finished executing pythonOutputDistPhase toml-sort-0.24.4> Running phase: fixupPhase toml-sort-0.24.4> checking for references to /nix/var/nix/builds/nix-26726-3445873280/ in /nix/store/c6vgy17prfd1g9qpmz0v9mb04acvxfh4-toml-sort-0.24.4-dist... toml-sort-0.24.4> patching script interpreter paths in /nix/store/c6vgy17prfd1g9qpmz0v9mb04acvxfh4-toml-sort-0.24.4-dist toml-sort-0.24.4> checking for references to /nix/var/nix/builds/nix-26726-3445873280/ in /nix/store/z3prcrbq9xz1rr5a5sxi7gcfsgm59v5j-toml-sort-0.24.4... toml-sort-0.24.4> patching script interpreter paths in /nix/store/z3prcrbq9xz1rr5a5sxi7gcfsgm59v5j-toml-sort-0.24.4 toml-sort-0.24.4> stripping (with command strip and flags -S) in /nix/store/z3prcrbq9xz1rr5a5sxi7gcfsgm59v5j-toml-sort-0.24.4/lib /nix/store/z3prcrbq9xz1rr5a5sxi7gcfsgm59v5j-toml-sort-0.24.4/bin toml-sort-0.24.4> Rewriting #!/nix/store/0jb1qn7qnpbz8774mq5k2c1p84gp0x76-python3-3.14.8/bin/python3.14 to #!/nix/store/0jb1qn7qnpbz8774mq5k2c1p84gp0x76-python3-3.14.8 toml-sort-0.24.4> wrapping `/nix/store/z3prcrbq9xz1rr5a5sxi7gcfsgm59v5j-toml-sort-0.24.4/bin/toml-sort'... toml-sort-0.24.4> Executing pythonRemoveTestsDir toml-sort-0.24.4> Finished executing pythonRemoveTestsDir toml-sort-0.24.4> Running phase: installCheckPhase toml-sort-0.24.4> no Makefile or custom installCheckPhase, doing nothing toml-sort-0.24.4> Running phase: pythonCatchConflictsPhase toml-sort-0.24.4> Running phase: pythonRemoveBinBytecodePhase toml-sort-0.24.4> Running phase: pythonImportsCheckPhase toml-sort-0.24.4> Executing pythonImportsCheckPhase toml-sort-0.24.4> Running phase: pytestCheckPhase toml-sort-0.24.4> Executing pytestCheckPhase toml-sort-0.24.4> pytest flags: -m pytest toml-sort-0.24.4> ============================= test session starts ============================== toml-sort-0.24.4> platform darwin -- Python 3.14.8, pytest-9.1.1, pluggy-1.6.0 toml-sort-0.24.4> rootdir: /nix/var/nix/builds/nix-26726-3445873280/source toml-sort-0.24.4> configfile: pyproject.toml toml-sort-0.24.4> collected 50 items toml-sort-0.24.4> toml-sort-0.24.4> tests/test_cli.py .x.................................. [ 72%] toml-sort-0.24.4> tests/test_toml_sort.py .F.........x.. [100%] toml-sort-0.24.4> toml-sort-0.24.4> =================================== FAILURES =================================== toml-sort-0.24.4> ______ test_tomlsort[gradle-version-catalog-gradle-version-catalog-args0] ______ toml-sort-0.24.4> toml-sort-0.24.4> get_fixture = .getter at 0x1061fefb0> toml-sort-0.24.4> unsorted_fixture = 'gradle-version-catalog' toml-sort-0.24.4> sorted_fixture = 'gradle-version-catalog' toml-sort-0.24.4> args = {'sort_config': SortConfiguration(tables=False, table_keys=True, inline_tables=False, inline_arrays=False, ignore_case=False, first=[])} toml-sort-0.24.4> toml-sort-0.24.4> @pytest.mark.parametrize( toml-sort-0.24.4> "unsorted_fixture,sorted_fixture,args", toml-sort-0.24.4> [ toml-sort-0.24.4> ( toml-sort-0.24.4> "gradle-version-catalog", toml-sort-0.24.4> "gradle-version-catalog", toml-sort-0.24.4> { toml-sort-0.24.4> "sort_config": SortConfiguration( toml-sort-0.24.4> tables=False, toml-sort-0.24.4> ), toml-sort-0.24.4> }, toml-sort-0.24.4> ), toml-sort-0.24.4> ( toml-sort-0.24.4> "dotted-key", toml-sort-0.24.4> "dotted-key", toml-sort-0.24.4> { toml-sort-0.24.4> "sort_config": SortConfiguration( toml-sort-0.24.4> inline_arrays=True, inline_tables=True toml-sort-0.24.4> ), toml-sort-0.24.4> }, toml-sort-0.24.4> ), toml-sort-0.24.4> ( toml-sort-0.24.4> "inline", toml-sort-0.24.4> "inline", toml-sort-0.24.4> { toml-sort-0.24.4> "sort_config": SortConfiguration( toml-sort-0.24.4> inline_arrays=True, inline_tables=True toml-sort-0.24.4> ), toml-sort-0.24.4> }, toml-sort-0.24.4> ), toml-sort-0.24.4> ( toml-sort-0.24.4> "comment", toml-sort-0.24.4> "comment-comments-preserved", toml-sort-0.24.4> {"comment_config": CommentConfiguration(header=False, footer=False)}, toml-sort-0.24.4> ), toml-sort-0.24.4> ( toml-sort-0.24.4> "comment", toml-sort-0.24.4> "comment-no-comments", toml-sort-0.24.4> { toml-sort-0.24.4> "comment_config": CommentConfiguration( toml-sort-0.24.4> header=False, toml-sort-0.24.4> footer=False, toml-sort-0.24.4> block=False, toml-sort-0.24.4> inline=False, toml-sort-0.24.4> ) toml-sort-0.24.4> }, toml-sort-0.24.4> ), toml-sort-0.24.4> ( toml-sort-0.24.4> "comment", toml-sort-0.24.4> "comment-header-footer", toml-sort-0.24.4> { toml-sort-0.24.4> "sort_config": SortConfiguration(table_keys=False), toml-sort-0.24.4> "format_config": FormattingConfiguration( toml-sort-0.24.4> spaces_before_inline_comment=1 toml-sort-0.24.4> ), toml-sort-0.24.4> }, toml-sort-0.24.4> ), toml-sort-0.24.4> ( toml-sort-0.24.4> "from-toml-lang", toml-sort-0.24.4> "from-toml-lang", toml-sort-0.24.4> { toml-sort-0.24.4> "sort_config": SortConfiguration(table_keys=False), toml-sort-0.24.4> "format_config": FormattingConfiguration( toml-sort-0.24.4> spaces_before_inline_comment=1 toml-sort-0.24.4> ), toml-sort-0.24.4> }, toml-sort-0.24.4> ), toml-sort-0.24.4> ( toml-sort-0.24.4> "from-toml-lang", toml-sort-0.24.4> "from-toml-lang-overrides", toml-sort-0.24.4> { toml-sort-0.24.4> "sort_config": SortConfiguration( toml-sort-0.24.4> inline_arrays=True, inline_tables=True toml-sort-0.24.4> ), toml-sort-0.24.4> "format_config": FormattingConfiguration( toml-sort-0.24.4> spaces_before_inline_comment=1 toml-sort-0.24.4> ), toml-sort-0.24.4> "sort_config_overrides": { toml-sort-0.24.4> "servers.beta": SortOverrideConfiguration(table_keys=False), toml-sort-0.24.4> "clients.data": SortOverrideConfiguration(inline_arrays=False), toml-sort-0.24.4> }, toml-sort-0.24.4> }, toml-sort-0.24.4> ), toml-sort-0.24.4> ( toml-sort-0.24.4> "from-toml-lang", toml-sort-0.24.4> "from-toml-lang-first", toml-sort-0.24.4> { toml-sort-0.24.4> "sort_config": SortConfiguration( toml-sort-0.24.4> inline_arrays=True, toml-sort-0.24.4> inline_tables=True, toml-sort-0.24.4> first=["servers", "products"], toml-sort-0.24.4> ), toml-sort-0.24.4> "format_config": FormattingConfiguration( toml-sort-0.24.4> spaces_before_inline_comment=1 toml-sort-0.24.4> ), toml-sort-0.24.4> "sort_config_overrides": { toml-sort-0.24.4> "database": SortOverrideConfiguration(first=["ports"]), toml-sort-0.24.4> "owner": SortOverrideConfiguration(first=["name", "dob"]), toml-sort-0.24.4> "inline.c": SortOverrideConfiguration(first=["version"]), toml-sort-0.24.4> }, toml-sort-0.24.4> }, toml-sort-0.24.4> ), toml-sort-0.24.4> ( toml-sort-0.24.4> "pyproject-weird-order", toml-sort-0.24.4> "pyproject-weird-order", toml-sort-0.24.4> { toml-sort-0.24.4> "sort_config": SortConfiguration(table_keys=False), toml-sort-0.24.4> "comment_config": CommentConfiguration(block=False), toml-sort-0.24.4> "format_config": FormattingConfiguration( toml-sort-0.24.4> spaces_before_inline_comment=1 toml-sort-0.24.4> ), toml-sort-0.24.4> }, toml-sort-0.24.4> ), toml-sort-0.24.4> pytest.param( toml-sort-0.24.4> "weird", toml-sort-0.24.4> "weird", toml-sort-0.24.4> { toml-sort-0.24.4> "sort_config": SortConfiguration(table_keys=False), toml-sort-0.24.4> "comment_config": CommentConfiguration( toml-sort-0.24.4> block=False, toml-sort-0.24.4> ), toml-sort-0.24.4> "format_config": FormattingConfiguration( toml-sort-0.24.4> spaces_before_inline_comment=1 toml-sort-0.24.4> ), toml-sort-0.24.4> }, toml-sort-0.24.4> marks=[pytest.mark.xfail], toml-sort-0.24.4> ), toml-sort-0.24.4> pytest.param( toml-sort-0.24.4> "single-comment", toml-sort-0.24.4> "../single-comment", # Input is the same as the output toml-sort-0.24.4> {}, toml-sort-0.24.4> ), toml-sort-0.24.4> pytest.param( toml-sort-0.24.4> "empty", toml-sort-0.24.4> "empty", toml-sort-0.24.4> {}, toml-sort-0.24.4> ), toml-sort-0.24.4> ], toml-sort-0.24.4> ) toml-sort-0.24.4> def test_tomlsort( toml-sort-0.24.4> get_fixture: Callable[[str | List[str]], Path], toml-sort-0.24.4> unsorted_fixture: str, toml-sort-0.24.4> sorted_fixture: str, toml-sort-0.24.4> args: Dict[str, Any], toml-sort-0.24.4> ) -> None: toml-sort-0.24.4> """Output of TomlSort.sorted() function matches expected.""" toml-sort-0.24.4> path_unsorted = get_fixture(unsorted_fixture) toml-sort-0.24.4> path_sorted = get_fixture(["sorted", sorted_fixture]) toml-sort-0.24.4> toml-sort-0.24.4> toml_unsorted_fixture = path_unsorted.read_text() toml-sort-0.24.4> toml_sorted_fixture = path_sorted.read_text() toml-sort-0.24.4> toml-sort-0.24.4> > sort_output = TomlSort(toml_unsorted_fixture, **args).sorted() toml-sort-0.24.4> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ toml-sort-0.24.4> toml-sort-0.24.4> tests/test_toml_sort.py:177: toml-sort-0.24.4> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ toml-sort-0.24.4> toml_sort/tomlsort.py:782: in sorted toml-sort-0.24.4> sorted_toml = self.toml_doc_sorted(toml_doc) toml-sort-0.24.4> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ toml-sort-0.24.4> toml_sort/tomlsort.py:768: in toml_doc_sorted toml-sort-0.24.4> self.toml_elements_sorted(item, sorted_document), toml-sort-0.24.4> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ toml-sort-0.24.4> toml_sort/tomlsort.py:576: in toml_elements_sorted toml-sort-0.24.4> for item in self.sorted_children_table(original.keys, original.children): toml-sort-0.24.4> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ toml-sort-0.24.4> toml_sort/tomlsort.py:526: in sorted_children_table toml-sort-0.24.4> non_tables = self.sort_items( toml-sort-0.24.4> toml_sort/tomlsort.py:493: in sort_items toml-sort-0.24.4> item.value = self.sort_item(item.keys, item.value) toml-sort-0.24.4> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ toml-sort-0.24.4> toml_sort/tomlsort.py:419: in sort_item toml-sort-0.24.4> return self.sort_inline_table(keys, item, indent_depth=indent_depth) toml-sort-0.24.4> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ toml-sort-0.24.4> toml_sort/tomlsort.py:460: in sort_inline_table toml-sort-0.24.4> new_table.append( toml-sort-0.24.4> /nix/store/pc8qyi0ibn8qnj2kzp5zh9wrv207rjbg-python3.14-tomlkit-0.15.1/lib/python3.14/site-packages/tomlkit/items.py:2033: in append toml-sort-0.24.4> self._validate_child(_item) toml-sort-0.24.4> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ toml-sort-0.24.4> toml-sort-0.24.4> self = {'module': 'com.example:foo'}, _item = {'ref': 'fooVersion'} toml-sort-0.24.4> toml-sort-0.24.4> def _validate_child(self, _item: Item) -> None: toml-sort-0.24.4> if isinstance(_item, Table): toml-sort-0.24.4> > raise ValueError("Inline tables cannot contain a table") toml-sort-0.24.4> E ValueError: Inline tables cannot contain a table toml-sort-0.24.4> toml-sort-0.24.4> /nix/store/pc8qyi0ibn8qnj2kzp5zh9wrv207rjbg-python3.14-tomlkit-0.15.1/lib/python3.14/site-packages/tomlkit/items.py:2053: ValueError toml-sort-0.24.4> =========================== short test summary info ============================ toml-sort-0.24.4> FAILED tests/test_toml_sort.py::test_tomlsort[gradle-version-catalog-gradle-version-catalog-args0] - ValueError: Inline tables cannot contain a table toml-sort-0.24.4> =================== 1 failed, 47 passed, 2 xfailed in 1.33s ==================== error: build of '/nix/store/lrvpy2x9y4lald63bsr57lfgmjx3qaqb-toml-sort-0.24.4.drv' on 'ssh-ng://nix@cortana' failed: Cannot build '/nix/store/lrvpy2x9y4lald63bsr57lfgmjx3qaqb-toml-sort-0.24.4.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/c6vgy17prfd1g9qpmz0v9mb04acvxfh4-toml-sort-0.24.4-dist /nix/store/z3prcrbq9xz1rr5a5sxi7gcfsgm59v5j-toml-sort-0.24.4 Last 25 log lines: > toml_sort/tomlsort.py:526: in sorted_children_table > non_tables = self.sort_items( > toml_sort/tomlsort.py:493: in sort_items > item.value = self.sort_item(item.keys, item.value) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > toml_sort/tomlsort.py:419: in sort_item > return self.sort_inline_table(keys, item, indent_depth=indent_depth) > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > toml_sort/tomlsort.py:460: in sort_inline_table > new_table.append( > /nix/store/pc8qyi0ibn8qnj2kzp5zh9wrv207rjbg-python3.14-tomlkit-0.15.1/lib/python3.14/site-packages/tomlkit/items.py:2033: in append > self._validate_child(_item) > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > > self = {'module': 'com.example:foo'}, _item = {'ref': 'fooVersion'} > > def _validate_child(self, _item: Item) -> None: > if isinstance(_item, Table): > > raise ValueError("Inline tables cannot contain a table") > E ValueError: Inline tables cannot contain a table > > /nix/store/pc8qyi0ibn8qnj2kzp5zh9wrv207rjbg-python3.14-tomlkit-0.15.1/lib/python3.14/site-packages/tomlkit/items.py:2053: ValueError > =========================== short test summary info ============================ > FAILED tests/test_toml_sort.py::test_tomlsort[gradle-version-catalog-gradle-version-catalog-args0] - ValueError: Inline tables cannot contain a table > =================== 1 failed, 47 passed, 2 xfailed in 1.33s ==================== For full logs, run: nix log /nix/store/lrvpy2x9y4lald63bsr57lfgmjx3qaqb-toml-sort-0.24.4.drv error: Cannot build '/nix/store/lrvpy2x9y4lald63bsr57lfgmjx3qaqb-toml-sort-0.24.4.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/c6vgy17prfd1g9qpmz0v9mb04acvxfh4-toml-sort-0.24.4-dist /nix/store/z3prcrbq9xz1rr5a5sxi7gcfsgm59v5j-toml-sort-0.24.4 error: Cannot build '/nix/store/xcw186h3jfy1p3l2b1vdiyzan78rl6am-treefmt.toml.drv'. Reason: 1 dependency failed. Output paths: /nix/store/q02w08j9dgcy7fv25vw3rayi83kvns3q-treefmt.toml error: Cannot build '/nix/store/42lhb4pnqi7q5hay4bhhy660sq6l49xk-treefmt.drv'. Reason: 1 dependency failed. Output paths: /nix/store/300n3rp5y0d7bq0s5lf807kczksnq9zs-treefmt error: Cannot build '/nix/store/hyvrhnw7l54rc70lnbirqbp25gypy05d-treefmt-check.drv'. Reason: 1 dependency failed. Output paths: /nix/store/d35spxlhwixqpfb95f4a3f9nc1zrs82k-treefmt-check