xonsh: 0.6.8 -> 0.8.3
This commit is contained in:
parent
8c8d3c74c5
commit
edf30a24e8
|
@ -1,20 +1,19 @@
|
||||||
{ stdenv, fetchFromGitHub, python3Packages, glibcLocales, coreutils }:
|
{ stdenv, fetchFromGitHub, python3Packages, glibcLocales, coreutils, git }:
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
name = "xonsh-${version}";
|
pname = "xonsh";
|
||||||
version = "0.6.8";
|
version = "0.8.3";
|
||||||
|
|
||||||
|
# fetch from github because the pypi package ships incomplete tests
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "scopatz";
|
owner = "scopatz";
|
||||||
repo = "xonsh";
|
repo = "xonsh";
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
sha256= "1a74xpww7k432b2z44388rl31nqvckn2q3fswci04f48698hzs5l";
|
sha256 = "1qnghqswvqlwv9121r4maibmn2dvqmbr3fhsnngsj3q7plfp7yb2";
|
||||||
};
|
};
|
||||||
|
|
||||||
LC_ALL = "en_US.UTF-8";
|
LC_ALL = "en_US.UTF-8";
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
rm xonsh/winutils.py
|
|
||||||
|
|
||||||
sed -ie "s|/bin/ls|${coreutils}/bin/ls|" tests/test_execer.py
|
sed -ie "s|/bin/ls|${coreutils}/bin/ls|" tests/test_execer.py
|
||||||
sed -ie 's|/usr/bin/env|${coreutils}/bin/env|' scripts/xon.sh
|
sed -ie 's|/usr/bin/env|${coreutils}/bin/env|' scripts/xon.sh
|
||||||
|
|
||||||
|
@ -22,15 +21,14 @@ python3Packages.buildPythonApplication rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
HOME=$TMPDIR XONSH_INTERACTIVE=0 \
|
HOME=$TMPDIR \
|
||||||
pytest \
|
pytest \
|
||||||
-k 'not test_man_completion and not test_printfile and not test_sourcefile and not test_printname ' \
|
-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'
|
||||||
tests
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = with python3Packages; [ pytest glibcLocales ];
|
checkInputs = [ python3Packages.pytest glibcLocales git ];
|
||||||
|
|
||||||
propagatedBuildInputs = with python3Packages; [ ply prompt_toolkit ];
|
propagatedBuildInputs = with python3Packages; [ ply prompt_toolkit_2 pygments ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A Python-ish, BASHwards-compatible shell";
|
description = "A Python-ish, BASHwards-compatible shell";
|
||||||
|
|
Loading…
Reference in a new issue