-
Notifications
You must be signed in to change notification settings - Fork 2
/
base.nix
37 lines (35 loc) · 829 Bytes
/
base.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ python, pythonPackages, pythonDocs ? null }:
with import <nixpkgs> {};
let
attrValues = lib.attrValues;
optionals = lib.optionals;
isPy26 = python.majorVersion == "2.6";
isPy27 = python.majorVersion == "2.7";
in
{
paths = [ python ] ++
(optionals (pythonDocs != null) [ pythonDocs ]) ++
(with pythonPackages;
[
coverage
elpy
flake8
ipdb
ipdbplugin
ipython
jedi
nose
pylint
recursivePthLoader
sqlite3
virtualenv
] ++
(optionals isPy26
[
ordereddict
unittest2
]) ++
(optionals isPy27
[ ])) ++
attrValues python.modules;
}