18 # PyPI package ships incomplete tests
19 src = fetchFromGitHub {
22 rev = "refs/tags/${argset.version}";
23 hash = "sha256-MJTsYnuFENHLDDMIWcs0IRcBmWs4XyfDWDG7AY2P6cM=";
26 nativeBuildInputs = with pythonPackages; [
31 propagatedBuildInputs = (
45 ++ (with pythonPackages; [
57 "test_loading_correctly"
58 "test_no_command_path_completion"
59 "test_bsd_man_page_completions"
60 "test_xonsh_activator"
62 # fails on non-interactive shells
65 "test_command_pipeline_capture"
66 "test_dirty_working_directory"
69 "test_bash_and_is_alias_is_only_functional_alias"
73 "test_alias_stability"
74 "test_alias_stability_exception"
75 "test_complete_import"
76 "test_subproc_output_format"
78 # https://github.com/xonsh/xonsh/issues/5569
79 "test_spec_decorator_alias_output_format"
84 "tests/completers/test_command_completers.py"
85 "tests/shell/test_ptk_highlight.py"
86 # fails on non-interactive shells
87 "tests/prompt/test_gitstatus.py"
88 "tests/completers/test_bash_completer.py"
91 # https://github.com/NixOS/nixpkgs/issues/248978
92 dontWrapPythonPrograms = true;
94 env.LC_ALL = "en_US.UTF-8";
97 sed -ie 's|/bin/ls|${lib.getExe' coreutils "ls"}|' tests/test_execer.py
98 sed -ie 's|SHELL=xonsh|SHELL=$out/bin/xonsh|' tests/test_integrations.py
100 for script in tests/test_integrations.py scripts/xon.sh $(find -name "*.xsh"); do
101 sed -ie 's|/usr/bin/env|${lib.getExe' coreutils "env"}|' $script
108 export PATH=$out/bin:$PATH
112 shellPath = "/bin/xonsh";
113 python = pythonPackages.python; # To the wrapper
114 wrapper = throw "The top-level xonsh package is now wrapped. Use it directly.";
115 updateScript = gitUpdater { };
119 homepage = "https://xon.sh/";
120 description = "Python-ish, BASHwards-compatible shell";
121 changelog = "https://github.com/xonsh/xonsh/raw/main/CHANGELOG.rst";
122 license = with lib.licenses; [ bsd3 ];
123 mainProgram = "xonsh";
124 maintainers = with lib.maintainers; [ samlukeyes123 ];
128 pythonPackages.buildPythonPackage argset