@@ -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