mirror of
https://github.com/engineer-man/piston.git
synced 2025-04-23 21:46:27 +02:00
Nix: add python packages
This commit is contained in:
parent
10183d0638
commit
ffca3faddb
1 changed files with 12 additions and 2 deletions
|
@ -1,9 +1,19 @@
|
||||||
{pkgs, piston, ...}:
|
{pkgs, piston, ...}:
|
||||||
let
|
let
|
||||||
pkg = pkgs.python3;
|
piston-python-packages = python-packages: with python-packages; [
|
||||||
|
numpy
|
||||||
|
scipy
|
||||||
|
pandas
|
||||||
|
pycrypto
|
||||||
|
whoosh
|
||||||
|
bcrypt
|
||||||
|
passlib
|
||||||
|
sympy
|
||||||
|
];
|
||||||
|
pkg = pkgs.python3.withPackages piston-python-packages;
|
||||||
in piston.mkRuntime {
|
in piston.mkRuntime {
|
||||||
language = "python3";
|
language = "python3";
|
||||||
version = pkg.version;
|
version = pkgs.python3.version;
|
||||||
|
|
||||||
aliases = [
|
aliases = [
|
||||||
"py3"
|
"py3"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue