-
Notifications
You must be signed in to change notification settings - Fork 17
/
pythonPackages.nix
47 lines (36 loc) · 1.25 KB
/
pythonPackages.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
38
39
40
41
42
43
44
45
46
47
subset: cfg: finalPkgs: prevPkgs: final: prev:
let
callPackage = lib.callPackageWith (
finalPkgs.pkgs // # nixpkgs
finalPkgs // # overlay
final // # python
overlay );
inherit (finalPkgs.pkgs) lib;
qlib = import ./lib.nix { inherit lib; };
overlay = {
} // lib.optionalAttrs prev.isPy3k (qlib.pkgs-by-name callPackage ./pkgs/python-by-name)
// lib.optionalAttrs prev.isPy3k {
autodock-vina = callPackage ./pkgs/apps/autodock-vina/python.nix {
inherit (finalPkgs) autodock-vina;
};
biopython = prev.biopython.overrideAttrs (old: {
doCheck = false;
doInstallCheck = false;
});
pychemps2 = callPackage ./pkgs/apps/chemps2/PyChemMPS2.nix { };
pysisyphus = callPackage ./pkgs/python-by-name/pysisyphus/package.nix {
gamess-us = finalPkgs.gamess-us.override {
enableMpi = false;
};
};
qmcpack = callPackage ./pkgs/python-by-name/qmcpack/package.nix {
inherit (finalPkgs.pkgs) libxml2;
};
vmd-python = callPackage ./pkgs/python-by-name/vmd-python/package.nix {
inherit cfg;
inherit (finalPkgs.pkgs) mesa;
};
};
in {
"${subset}" = overlay; # subset for release
} // overlay # Make sure non-python packages have access