From 2ee59ca55b7f55383d380a9ab766b32d55554a6b Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 9 Dec 2024 15:02:43 +0000 Subject: [PATCH 1/3] python312Packages.xonsh: 0.18.4 -> 0.19.0 --- pkgs/by-name/xo/xonsh/unwrapped.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/xo/xonsh/unwrapped.nix b/pkgs/by-name/xo/xonsh/unwrapped.nix index ce0533d0200da..55fcb1d6af845 100644 --- a/pkgs/by-name/xo/xonsh/unwrapped.nix +++ b/pkgs/by-name/xo/xonsh/unwrapped.nix @@ -12,7 +12,7 @@ let argset = { pname = "xonsh"; - version = "0.18.4"; + version = "0.19.0"; pyproject = true; # PyPI package ships incomplete tests @@ -20,7 +20,7 @@ let owner = "xonsh"; repo = "xonsh"; rev = "refs/tags/${argset.version}"; - hash = "sha256-L5UwmwwM42E3l+sIBwXgMf/q5r22cUoRbE2cqM09bZA="; + hash = "sha256-rt402MKnhjC/AYz9Rm6B5RkivcVxveVW2rM/nT/xcNo="; }; nativeBuildInputs = with pythonPackages; [ From ecca3b0f30ec35344403ae161b68ef5f70647c27 Mon Sep 17 00:00:00 2001 From: SamLukeYes Date: Sun, 19 Jan 2025 18:29:44 +0800 Subject: [PATCH 2/3] xonsh: 0.19.0 -> 0.19.1, use nix-update-script --- pkgs/by-name/xo/xonsh/unwrapped.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/xo/xonsh/unwrapped.nix b/pkgs/by-name/xo/xonsh/unwrapped.nix index 55fcb1d6af845..85a782d8ede3c 100644 --- a/pkgs/by-name/xo/xonsh/unwrapped.nix +++ b/pkgs/by-name/xo/xonsh/unwrapped.nix @@ -3,8 +3,8 @@ coreutils, fetchFromGitHub, git, - gitUpdater, glibcLocales, + nix-update-script, pythonPackages, }: @@ -12,7 +12,7 @@ let argset = { pname = "xonsh"; - version = "0.19.0"; + version = "0.19.1"; pyproject = true; # PyPI package ships incomplete tests @@ -20,7 +20,7 @@ let owner = "xonsh"; repo = "xonsh"; rev = "refs/tags/${argset.version}"; - hash = "sha256-rt402MKnhjC/AYz9Rm6B5RkivcVxveVW2rM/nT/xcNo="; + hash = "sha256-20egNKlJjJO1wdy1anApz0ADBnaHPUSqhfrsPe3QQIs="; }; nativeBuildInputs = with pythonPackages; [ @@ -112,7 +112,7 @@ let shellPath = "/bin/xonsh"; python = pythonPackages.python; # To the wrapper wrapper = throw "The top-level xonsh package is now wrapped. Use it directly."; - updateScript = gitUpdater { }; + updateScript = nix-update-script { }; }; meta = { From 988e317e87153f59d90e6de913e6ecbe571076e1 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Mon, 3 Feb 2025 22:20:19 +0100 Subject: [PATCH 3/3] xonsh: use `addBinToPathHook` --- pkgs/by-name/xo/xonsh/unwrapped.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/xo/xonsh/unwrapped.nix b/pkgs/by-name/xo/xonsh/unwrapped.nix index 85a782d8ede3c..24cbc75b560d9 100644 --- a/pkgs/by-name/xo/xonsh/unwrapped.nix +++ b/pkgs/by-name/xo/xonsh/unwrapped.nix @@ -2,10 +2,12 @@ lib, coreutils, fetchFromGitHub, - git, + gitMinimal, glibcLocales, nix-update-script, pythonPackages, + addBinToPathHook, + writableTmpDirAsHomeHook, }: let @@ -19,7 +21,7 @@ let src = fetchFromGitHub { owner = "xonsh"; repo = "xonsh"; - rev = "refs/tags/${argset.version}"; + tag = argset.version; hash = "sha256-20egNKlJjJO1wdy1anApz0ADBnaHPUSqhfrsPe3QQIs="; }; @@ -39,8 +41,10 @@ let nativeCheckInputs = [ - git + addBinToPathHook + gitMinimal glibcLocales + writableTmpDirAsHomeHook ] ++ (with pythonPackages; [ pip @@ -77,6 +81,9 @@ let # https://github.com/xonsh/xonsh/issues/5569 "test_spec_decorator_alias_output_format" + + # Broken test + "test_repath_backslash" ]; disabledTestPaths = [ @@ -103,11 +110,6 @@ let patchShebangs . ''; - preCheck = '' - export HOME=$TMPDIR - export PATH=$out/bin:$PATH - ''; - passthru = { shellPath = "/bin/xonsh"; python = pythonPackages.python; # To the wrapper