Commit ea7ebb0 1 parent e37022e commit ea7ebb0 Copy full SHA for ea7ebb0
File tree 4 files changed +21
-1
lines changed
4 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 9
9
10
10
, python3
11
11
12
+ , name
13
+
12
14
, settings
13
15
, settingsSchema
14
16
} :
22
24
hasPythonLspServer = python : ( lib . hasAttr "python-lsp-server" python . pkgs ) && ( lib . versionAtLeast python . pythonVersion "3.7" ) ;
23
25
hasPythonLanguageServer = python : lib . hasAttr "python-language-server" python . pkgs ;
24
26
25
- displayName = "Python " + python3 . version ;
27
+ displayName = name + " " + python3 . version ;
26
28
kernelName = "python3" ;
27
29
28
30
packageOptions = python3 . pkgs ;
Original file line number Diff line number Diff line change 132
132
else lib . getAttr x config . pkgs ;
133
133
in
134
134
config . pkgs . callPackage ./. {
135
+ name = "Python" ;
136
+
135
137
python3 = basePython ;
136
138
137
139
settings = config . kernels . python3 ;
142
144
( mkIf config . kernels . pypy3 . enable {
143
145
builtKernels . pypy3 =
144
146
config . pkgs . callPackage ./. {
147
+ name = "PyPy" ;
148
+
145
149
python3 = lib . getAttr config . kernels . pypy3 . python3Package config . pkgs ;
146
150
147
151
settings = config . kernels . pypy3 ;
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ args: {
19
19
mega = import ./sample_environments/mega.nix args ;
20
20
octave = import ./sample_environments/octave.nix args ;
21
21
postgres = import ./sample_environments/postgres.nix args ;
22
+ pypy3 = import ./sample_environments/pypy3.nix args ;
22
23
python3 = import ./sample_environments/python3.nix args ;
23
24
r = import ./sample_environments/r.nix args ;
24
25
ruby = import ./sample_environments/ruby.nix args ;
Original file line number Diff line number Diff line change
1
+ { codedown
2
+ , channels ? { }
3
+ , ...
4
+ } :
5
+
6
+ codedown . makeEnvironment {
7
+ kernels . pypy3 . enable = true ;
8
+ kernels . pypy3 . packages = [
9
+ "matplotlib"
10
+ "scipy"
11
+ "rope"
12
+ ] ;
13
+ }
You can’t perform that action at this time.
0 commit comments