piston/runtimes/python3.nix

28 lines
422 B
Nix
Raw Permalink Normal View History

{pkgs, piston, ...}:
let
pkg = pkgs.python3;
in piston.mkRuntime {
language = "python3";
version = pkg.version;
aliases = [
"py3"
"py"
2022-06-05 11:39:34 +02:00
"python"
];
run = ''
${pkg}/bin/python3 "$@"
'';
tests = [
(piston.mkTest {
files = {
"test.py" = ''
print("OK")
'';
};
})
];
2022-06-05 11:39:34 +02:00
}