alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
RIP: xonsh2
author
lassulus
date
1 year ago
(May 12, 2025, 10:58 AM CEST)
commit
2ec4c9cd
2ec4c9cdb57cc695da66a005fc7dc32cadc08597
parent
41c152ea
41c152eaf33d87b6e74b3e8c555ae422ac4a9117
-71
1 changed file
Expand all
Collapse all
Unified
Split
5pkgs
xonsh2
default.nix
-71
5pkgs/xonsh2/default.nix
Reviewed
···
1
1
-
{
2
2
-
lib,
3
3
-
fetchFromGitHub,
4
4
-
python39Packages,
5
5
-
glibcLocales,
6
6
-
coreutils,
7
7
-
git,
8
8
-
extraInputs ? [ ],
9
9
-
}:
10
10
-
let
11
11
-
12
12
-
python3Packages = python39Packages;
13
13
-
14
14
-
in
15
15
-
python3Packages.buildPythonApplication rec {
16
16
-
pname = "xonsh2";
17
17
-
version = "master";
18
18
-
19
19
-
# fetch from github because the pypi package ships incomplete tests
20
20
-
src = fetchFromGitHub {
21
21
-
owner = "anki-code";
22
22
-
repo = "xonsh2";
23
23
-
rev = "bd96fcdce9319ab6b90c7d9ac47d2249b61144d0";
24
24
-
sha256 = "0b632rac8macfp2mmvhh1f34cf1m5qfpjajwnf676qk7jzn79vx6";
25
25
-
};
26
26
-
27
27
-
LC_ALL = "en_US.UTF-8";
28
28
-
29
29
-
postPatch = ''
30
30
-
sed -ie 's|/usr/bin/env|${coreutils}/bin/env|' scripts/xon.sh
31
31
-
find scripts -name 'xonsh*' -exec sed -i -e "s|env -S|env|" {} \;
32
32
-
find -name "*.xsh" | xargs sed -ie 's|/usr/bin/env|${coreutils}/bin/env|'
33
33
-
patchShebangs .
34
34
-
'';
35
35
-
36
36
-
doCheck = false;
37
37
-
38
38
-
checkPhase = ''
39
39
-
HOME=$TMPDIR pytest -k 'not test_repath_backslash and not test_os and not test_man_completion and not test_builtins and not test_main and not test_ptk_highlight and not test_pyghooks'
40
40
-
HOME=$TMPDIR pytest -k 'test_builtins or test_main' --reruns 5
41
41
-
HOME=$TMPDIR pytest -k 'test_ptk_highlight'
42
42
-
'';
43
43
-
44
44
-
checkInputs = [
45
45
-
python3Packages.pytest
46
46
-
python3Packages.pytest-rerunfailures
47
47
-
glibcLocales
48
48
-
git
49
49
-
];
50
50
-
51
51
-
propagatedBuildInputs =
52
52
-
with python3Packages;
53
53
-
[
54
54
-
ply
55
55
-
prompt_toolkit
56
56
-
pygments
57
57
-
]
58
58
-
++ extraInputs;
59
59
-
60
60
-
meta = with lib; {
61
61
-
description = "A Python-ish, BASHwards-compatible shell";
62
62
-
homepage = "https://xon.sh/";
63
63
-
# changelog = "https://github.com/xonsh/xonsh/releases/tag/${version}";
64
64
-
license = licenses.bsd3;
65
65
-
platforms = platforms.all;
66
66
-
};
67
67
-
68
68
-
passthru = {
69
69
-
shellPath = "/bin/xonsh2";
70
70
-
};
71
71
-
}