Skip to content

Commit

Permalink
xonsh: pin prompt-toolkit version
Browse files Browse the repository at this point in the history
Bug upstream introduced in version 3.0.41 causes xonsh to randomly crash.
See xonsh/xonsh#5241
  • Loading branch information
FlyingWombat committed Apr 4, 2024
1 parent 053ab7f commit 966f45c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pkgs/by-name/xo/xonsh/unwrapped.nix
Expand Up @@ -5,11 +5,21 @@
, gitUpdater
, glibcLocales
, python3
, fetchPypi
}:

let
pname = "xonsh";
version = "0.15.1";
# workaround for https://github.com/xonsh/xonsh/issues/5241
prompt-toolkit-pinned = python3.pkgs.prompt-toolkit.overridePythonAttrs(old: rec{
version = "3.0.40";
src = fetchPypi {
pname = "prompt_toolkit";
inherit version;
hash = "sha256-o3HAa7HWbNSZ/s1wjlDAtq4ArLqYIrozxYbi8W0bc54=";
};
});
in
python3.pkgs.buildPythonApplication {
inherit pname version;
Expand All @@ -31,7 +41,7 @@ python3.pkgs.buildPythonApplication {

propagatedBuildInputs = with python3.pkgs; [
ply
prompt-toolkit
prompt-toolkit-pinned
pygments
];

Expand Down

0 comments on commit 966f45c

Please sign in to comment.