git.iko.soy/typeable/nixpkgs
on master help sign in
xonsh: 0.9.27 -> 0.10.1

https://github.com/xonsh/xonsh/releases/tag/0.10.0 https://github.com/xonsh/xonsh/releases/tag/0.10.1

commitc39cde2537dd8093ff4b51812529130537c10b87 authorMario Rodas <marsam@users.noreply.github.com> dateSat 24 Jul 2021, 04:20 (5 years ago) parentac1cc7b
1 file changed+28−13
pkgs/shells/xonsh/default.nix+28−13
pkgs/shells/xonsh/default.nix+28−13
@@ -1,4 +1,4 @@
1−{ lib, stdenv
1+{ lib
22, fetchFromGitHub
33, python3Packages
44, glibcLocales
@@ -8,14 +8,14 @@
88
99python3Packages.buildPythonApplication rec {
1010 pname = "xonsh";
11− version = "0.9.27";
11+ version = "0.10.1";
1212
1313 # fetch from github because the pypi package ships incomplete tests
1414 src = fetchFromGitHub {
15− owner = "xonsh";
16− repo = "xonsh";
17− rev = version;
18− sha256 = "09w6bl3qsygfs2ph2r423ndnbd74bzf67vp8587h2dkkfxlzjbad";
15+ owner = "xonsh";
16+ repo = "xonsh";
17+ rev = version;
18+ sha256 = "03ahay2rl98a9k4pqkxksmj6mcg554jnbhw9jh8cyvjrygrpcpch";
1919 };
2020
2121 LC_ALL = "en_US.UTF-8";
@@ -31,15 +31,31 @@ python3Packages.buildPythonApplication rec {
3131 patchShebangs .
3232 '';
3333
34− doCheck = !stdenv.isDarwin;
34+ disabledTests = [
35+ # fails on sandbox
36+ "test_colorize_file"
37+ "test_loading_correctly"
38+ "test_no_command_path_completion"
39+ # fails on non-interactive shells
40+ "test_capture_always"
41+ "test_casting"
42+ "test_command_pipeline_capture"
43+ "test_dirty_working_directory"
44+ "test_man_completion"
45+ "test_vc_get_branch"
46+ ];
3547
36− checkPhase = ''
37− 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 and not test_pyghooks and not test_command_pipeline_capture and not test_git_dirty_working_directory_includes_untracked and not test_dirty_working_directory and not test_vc_get_branch'
38− HOME=$TMPDIR pytest -k 'test_builtins or test_main' --reruns 5
39− HOME=$TMPDIR pytest -k 'test_ptk_highlight'
48+ disabledTestPaths = [
49+ # fails on non-interactive shells
50+ "tests/prompt/test_gitstatus.py"
51+ "tests/completers/test_bash_completer.py"
52+ ];
53+
54+ preCheck = ''
55+ HOME=$TMPDIR
4056 '';
4157
42− checkInputs = [ python3Packages.pytest python3Packages.pytest-rerunfailures glibcLocales git ];
58+ checkInputs = [ glibcLocales git ] ++ (with python3Packages; [ pytestCheckHook pytest-subprocess ]);
4359
4460 propagatedBuildInputs = with python3Packages; [ ply prompt_toolkit pygments ];
4561
@@ -49,7 +65,6 @@ python3Packages.buildPythonApplication rec {
4965 changelog = "https://github.com/xonsh/xonsh/raw/${version}/CHANGELOG.rst";
5066 license = licenses.bsd3;
5167 maintainers = with maintainers; [ spwhitt vrthra ];
52− platforms = platforms.all;
5368 };
5469
5570 passthru = {