···281 copy_flags = common_flags | vars(args_groups["copy_flags"])
282283 if args.upgrade or args.upgrade_all:
284- nix.upgrade_channels(bool(args.upgrade_all))
285286 action = Action(args.action)
287 # Only run shell scripts from the Nixpkgs tree if the action is
···281 copy_flags = common_flags | vars(args_groups["copy_flags"])
282283 if args.upgrade or args.upgrade_all:
284+ nix.upgrade_channels(args.upgrade_all, args.sudo)
285286 action = Action(args.action)
287 # Only run shell scripts from the Nixpkgs tree if the action is
···693 )
694695696-def upgrade_channels(all_channels: bool = False) -> None:
697 """Upgrade channels for classic Nix.
698699 It will either upgrade just the `nixos` channel (including any channel
700 that has a `.update-on-nixos-rebuild` file) or all.
701 """
000000702 for channel_path in Path("/nix/var/nix/profiles/per-user/root/channels/").glob("*"):
703 if channel_path.is_dir() and (
704 all_channels
705 or channel_path.name == "nixos"
706 or (channel_path / ".update-on-nixos-rebuild").exists()
707 ):
708- run_wrapper(["nix-channel", "--update", channel_path.name], check=False)
0000
···693 )
694695696+def upgrade_channels(all_channels: bool = False, sudo: bool = False) -> None:
697 """Upgrade channels for classic Nix.
698699 It will either upgrade just the `nixos` channel (including any channel
700 that has a `.update-on-nixos-rebuild` file) or all.
701 """
702+ if not sudo and os.geteuid() != 0:
703+ raise NixOSRebuildError(
704+ "if you pass the '--upgrade' or '--upgrade-all' flag, you must "
705+ "also pass '--sudo' or run the command as root (e.g., with sudo)"
706+ )
707+708 for channel_path in Path("/nix/var/nix/profiles/per-user/root/channels/").glob("*"):
709 if channel_path.is_dir() and (
710 all_channels
711 or channel_path.name == "nixos"
712 or (channel_path / ".update-on-nixos-rebuild").exists()
713 ):
714+ run_wrapper(
715+ ["nix-channel", "--update", channel_path.name],
716+ check=False,
717+ sudo=sudo,
718+ )
···112 hatchling
113 ];
114115- pythonRelaxDeps = [
116- # "toolz"
117- ];
118-119 dependencies = [
120 atpublic
121 parsy
···171172 # AssertionError: value does not match the expected value in snapshot ibis/backends/tests/snapshots/test_sql/test_rewrite_context/sqlite/out.sql
173 "test_rewrite_context"
000000174 ];
175176 # patch out tests that check formatting with black
···352 homepage = "https://github.com/ibis-project/ibis";
353 changelog = "https://github.com/ibis-project/ibis/blob/${version}/docs/release_notes.md";
354 license = lib.licenses.asl20;
355- maintainers = with lib.maintainers; [ cpcloud ];
000356 };
357}
···112 hatchling
113 ];
1140000115 dependencies = [
116 atpublic
117 parsy
···167168 # AssertionError: value does not match the expected value in snapshot ibis/backends/tests/snapshots/test_sql/test_rewrite_context/sqlite/out.sql
169 "test_rewrite_context"
170+171+ # Assertion error comparing a calculated version string with the actual (during nixpkgs-review)
172+ "test_builtin_scalar_noargs"
173+174+ # duckdb ParserError: syntax error at or near "AT"
175+ "test_90"
176 ];
177178 # patch out tests that check formatting with black
···354 homepage = "https://github.com/ibis-project/ibis";
355 changelog = "https://github.com/ibis-project/ibis/blob/${version}/docs/release_notes.md";
356 license = lib.licenses.asl20;
357+ maintainers = with lib.maintainers; [
358+ cpcloud
359+ sarahec
360+ ];
361 };
362}
···77 disabledTests = [
78 # Assertion issues
79 "test_textual_env_var"
80-81- # Fail since tree-sitter-markdown was updated to 0.5.0
82- # ValueError: Incompatible Language version 15. Must be between 13 and 14
83- # https://github.com/Textualize/textual/issues/5868
84- "test_setting_builtin_language_via_attribute"
85- "test_setting_builtin_language_via_constructor"
86 ];
8788 pytestFlags = [