mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 01:33:10 +00:00
e07ea4f383
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/xonsh/versions. These checks were done: - built on NixOS - Warning: no invocation of /nix/store/yp41kipqmmsjl0ldi4b16z2590shv9dp-xonsh-0.6.8/bin/xon.sh had a zero exit code or showed the expected version - /nix/store/yp41kipqmmsjl0ldi4b16z2590shv9dp-xonsh-0.6.8/bin/.xonsh-wrapped passed the binary check. - /nix/store/yp41kipqmmsjl0ldi4b16z2590shv9dp-xonsh-0.6.8/bin/xonsh passed the binary check. - 2 of 3 passed binary check by having a zero exit code. - 2 of 3 passed binary check by having the new version present in output. - found 0.6.8 with grep in /nix/store/yp41kipqmmsjl0ldi4b16z2590shv9dp-xonsh-0.6.8 - directory tree listing: https://gist.github.com/e53ad25422aa303572f4452029cb65b3 - du listing: https://gist.github.com/0c29b7c27c01e8d34986163ba00f1615
47 lines
1.2 KiB
Nix
47 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, python3Packages, glibcLocales, coreutils }:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
name = "xonsh-${version}";
|
|
version = "0.6.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "scopatz";
|
|
repo = "xonsh";
|
|
rev = version;
|
|
sha256= "1a74xpww7k432b2z44388rl31nqvckn2q3fswci04f48698hzs5l";
|
|
};
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
postPatch = ''
|
|
rm xonsh/winutils.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
|
|
|
|
patchShebangs .
|
|
'';
|
|
|
|
checkPhase = ''
|
|
HOME=$TMPDIR XONSH_INTERACTIVE=0 \
|
|
pytest \
|
|
-k 'not test_man_completion and not test_printfile and not test_sourcefile and not test_printname ' \
|
|
tests
|
|
'';
|
|
|
|
checkInputs = with python3Packages; [ pytest glibcLocales ];
|
|
|
|
propagatedBuildInputs = with python3Packages; [ ply prompt_toolkit ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A Python-ish, BASHwards-compatible shell";
|
|
homepage = http://xon.sh/;
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ spwhitt garbas vrthra ];
|
|
platforms = platforms.all;
|
|
};
|
|
|
|
passthru = {
|
|
shellPath = "/bin/xonsh";
|
|
};
|
|
}
|