git.iko.soy/typeable/nixpkgs
on master help sign in
xonsh: Fix broken tests

Pulls in a patch committed a couple of days after the 0.9.13 release (the one here), to fix the tests. (cherry picked from commit bf822c4caa96666d5ee1c20870229b9f6484e5cd)

commit2c7ba2060d11445974a8fbcbe4043b66bcb7310e authorKovacsics Robert <rmk35@cam.ac.uk> dateTue 18 Feb 2020, 13:16 (7 years ago) parentb3a47c6
1 file changed+16−1
pkgs/shells/xonsh/default.nix+16−1
pkgs/shells/xonsh/default.nix+16−1
@@ -1,4 +1,11 @@
1−{ stdenv, fetchFromGitHub, python3Packages, glibcLocales, coreutils, git }:
1+{ stdenv
2+, fetchFromGitHub
3+, fetchpatch
4+, python3Packages
5+, glibcLocales
6+, coreutils
7+, git
8+}:
29
310python3Packages.buildPythonApplication rec {
411 pname = "xonsh";
@@ -12,6 +19,14 @@ python3Packages.buildPythonApplication rec {
1219 sha256 = "0nk6rjdkbxli510iwqspvray48kdxvbdmq1k8nxn14kqfpqzlbcv";
1320 };
1421
22+ patches = [
23+ (fetchpatch {
24+ name = "fix-ptk-tests.patch";
25+ url = "https://github.com/xonsh/xonsh/commit/ca7acecc968dcda7dd56c1f5d5b4df349c98d734.patch";
26+ sha256 = "00nhbf9wzm6r86r9zq8mnhds30w6gdhkgsx5kpl0jppiz4ll96iw";
27+ })
28+ ];
29+
1530 LC_ALL = "en_US.UTF-8";
1631 postPatch = ''
1732 sed -ie "s|/bin/ls|${coreutils}/bin/ls|" tests/test_execer.py