Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

xonsh: 0.8.3 -> 0.8.12 (#58824) (#59509)

(cherry picked from commit aa4af91d50f3af89a296299356b46cbb3e5ab5fa)

authored by

Timo Kaufmann and committed by
GitHub
b8debacb 8b4bd5e3

+12 -7
+12 -7
pkgs/shells/xonsh/default.nix
··· 2 3 python3Packages.buildPythonApplication rec { 4 pname = "xonsh"; 5 - version = "0.8.3"; 6 7 # fetch from github because the pypi package ships incomplete tests 8 src = fetchFromGitHub { 9 owner = "scopatz"; 10 repo = "xonsh"; 11 rev = "refs/tags/${version}"; 12 - sha256 = "1qnghqswvqlwv9121r4maibmn2dvqmbr3fhsnngsj3q7plfp7yb2"; 13 }; 14 15 LC_ALL = "en_US.UTF-8"; 16 postPatch = '' 17 sed -ie "s|/bin/ls|${coreutils}/bin/ls|" tests/test_execer.py 18 - sed -ie 's|/usr/bin/env|${coreutils}/bin/env|' scripts/xon.sh 19 20 patchShebangs . 21 ''; 22 23 checkPhase = '' 24 - HOME=$TMPDIR \ 25 - pytest \ 26 - -k 'not test_man_completion and not test_indir and not test_xonsh_party and not test_foreign_bash_data and not test_script and not test_single_command_no_windows and not test_redirect_out_to_file and not test_sourcefile and not test_printname and not test_printfile' 27 ''; 28 29 - checkInputs = [ python3Packages.pytest glibcLocales git ]; 30 31 propagatedBuildInputs = with python3Packages; [ ply prompt_toolkit pygments ]; 32
··· 2 3 python3Packages.buildPythonApplication rec { 4 pname = "xonsh"; 5 + version = "0.8.12"; 6 7 # fetch from github because the pypi package ships incomplete tests 8 src = fetchFromGitHub { 9 owner = "scopatz"; 10 repo = "xonsh"; 11 rev = "refs/tags/${version}"; 12 + sha256 = "1p8slx8nk15vyyzwc9ic50py0amk9p9nggp1973wfas0fxsg1r4f"; 13 }; 14 15 LC_ALL = "en_US.UTF-8"; 16 postPatch = '' 17 sed -ie "s|/bin/ls|${coreutils}/bin/ls|" tests/test_execer.py 18 + sed -ie "s|SHELL=xonsh|SHELL=$out/bin/xonsh|" tests/test_integrations.py 19 20 + sed -ie 's|/usr/bin/env|${coreutils}/bin/env|' tests/test_integrations.py 21 + sed -ie 's|/usr/bin/env|${coreutils}/bin/env|' scripts/xon.sh 22 + find -name "*.xsh" | xargs sed -ie 's|/usr/bin/env|${coreutils}/bin/env|' 23 patchShebangs . 24 ''; 25 26 + doCheck = !stdenv.isDarwin; 27 + 28 checkPhase = '' 29 + HOME=$TMPDIR pytest -k 'not test_repath_backslash and not test_os and not test_man_completion and not test_builtins and not test_main and not test_ptk_highlight' 30 + HOME=$TMPDIR pytest -k 'test_builtins or test_main' --reruns 5 31 + HOME=$TMPDIR pytest -k 'test_ptk_highlight' 32 ''; 33 34 + checkInputs = [ python3Packages.pytest python3Packages.pytest-rerunfailures glibcLocales git ]; 35 36 propagatedBuildInputs = with python3Packages; [ ply prompt_toolkit pygments ]; 37