python.tests.tkinter: init
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
{ interpreter, writeText, runCommand }:
|
||||
|
||||
let
|
||||
|
||||
pythonEnv = interpreter.withPackages(ps: [
|
||||
ps.tkinter
|
||||
]);
|
||||
|
||||
pythonScript = writeText "myscript.py" ''
|
||||
import tkinter
|
||||
print(tkinter)
|
||||
'';
|
||||
|
||||
in runCommand "${interpreter.name}-tkinter-test" {} ''
|
||||
${pythonEnv}/bin/python ${pythonScript}
|
||||
touch $out
|
||||
''
|
||||
Reference in New Issue
Block a user