Packaging/Python: Difference between revisions
imported>Milahu m wording |
imported>Adisbladis |
||
| Line 22: | Line 22: | ||
For a local working python environment you can use the following <code>shell.nix</code><ref>https://groups.google.com/forum/#!topic/nix-devel/3qPfwCAV3GE</ref>. | For a local working python environment you can use the following <code>shell.nix</code><ref>https://groups.google.com/forum/#!topic/nix-devel/3qPfwCAV3GE</ref>. | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> | ||
{ pkgs ? import <nixpkgs> { } }: | |||
let | |||
pythonEnv = pkgs.python3.withPackages(ps: [ | |||
ps.requests | |||
]); | |||
in | |||
pkgs.mkShell { | |||
packages = [ | |||
pythonEnv | |||
]; | ]; | ||
} | } | ||
</syntaxHighlight> | </syntaxHighlight> | ||