nixpkgs/pkgs/shells/xonsh/default.nix

47 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, python3Packages, glibcLocales, coreutils }:
2015-03-26 18:25:17 +00:00
python3Packages.buildPythonApplication rec {
2015-03-26 18:25:17 +00:00
name = "xonsh-${version}";
xonsh: 0.6.1 -> 0.6.3 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 - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/.xonsh-wrapped -h’ got 0 exit code - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/.xonsh-wrapped --help’ got 0 exit code - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/.xonsh-wrapped help’ got 0 exit code - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/.xonsh-wrapped -V’ and found version 0.6.3 - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/.xonsh-wrapped --version’ and found version 0.6.3 - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/xonsh -h’ got 0 exit code - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/xonsh --help’ got 0 exit code - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/xonsh help’ got 0 exit code - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/xonsh -V’ and found version 0.6.3 - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/xonsh --version’ and found version 0.6.3 - found 0.6.3 with grep in /nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3 - directory tree listing: https://gist.github.com/c4698aa16268961773b245a4b849a9f0 - du listing: https://gist.github.com/db7c65ccf5f4bf3c4457401c300d1862
2018-05-14 03:45:28 +01:00
version = "0.6.3";
2015-03-26 18:25:17 +00:00
src = fetchFromGitHub {
owner = "scopatz";
repo = "xonsh";
rev = version;
xonsh: 0.6.1 -> 0.6.3 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 - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/.xonsh-wrapped -h’ got 0 exit code - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/.xonsh-wrapped --help’ got 0 exit code - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/.xonsh-wrapped help’ got 0 exit code - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/.xonsh-wrapped -V’ and found version 0.6.3 - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/.xonsh-wrapped --version’ and found version 0.6.3 - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/xonsh -h’ got 0 exit code - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/xonsh --help’ got 0 exit code - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/xonsh help’ got 0 exit code - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/xonsh -V’ and found version 0.6.3 - ran ‘/nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3/bin/xonsh --version’ and found version 0.6.3 - found 0.6.3 with grep in /nix/store/prjh0vgnnn80ba9im4j9minjivsa8bj4-xonsh-0.6.3 - directory tree listing: https://gist.github.com/c4698aa16268961773b245a4b849a9f0 - du listing: https://gist.github.com/db7c65ccf5f4bf3c4457401c300d1862
2018-05-14 03:45:28 +01:00
sha256= "1893kkxvalx8ycjl27gixkh979kkp4ra00zb7m6a8cdllx6yhsgi";
};
2017-11-21 00:08:50 +00:00
LC_ALL = "en_US.UTF-8";
postPatch = ''
rm xonsh/winutils.py
2017-11-21 00:08:50 +00:00
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 .
2015-03-26 18:25:17 +00:00
'';
checkPhase = ''
2017-11-21 00:08:50 +00:00
HOME=$TMPDIR XONSH_INTERACTIVE=0 \
pytest \
-k 'not test_man_completion and not test_printfile and not test_sourcefile and not test_printname ' \
tests
'';
2015-03-26 18:25:17 +00:00
2017-11-21 00:08:50 +00:00
checkInputs = with python3Packages; [ pytest glibcLocales ];
propagatedBuildInputs = with python3Packages; [ ply prompt_toolkit ];
2015-03-26 18:25:17 +00:00
meta = with stdenv.lib; {
description = "A Python-ish, BASHwards-compatible shell";
2018-04-23 08:56:41 +01:00
homepage = http://xon.sh/;
2015-03-26 18:25:17 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ spwhitt garbas vrthra ];
2015-03-26 18:25:17 +00:00
platforms = platforms.all;
};
2016-05-14 14:03:37 +01:00
passthru = {
shellPath = "/bin/xonsh";
};
2015-03-26 18:25:17 +00:00
}