git.iko.soy/typeable/nixpkgs
on master help sign in
python-generic: set meta.broken for disabled packages instead of raising an error during evaluation

We have tons of evaluation errors on Hydra because it tries to build known broken packages. Re-using meta.broken makes sure these packages aren't evaluated in the first place.

commit79a5fec9c053a0b1303e121060a839d4b9ec2e55 authorPeter Simons <simons@cryp.to> dateThu 12 Feb 2015, 20:04 (12 years ago) parent9060376
1 file changed+2−1
pkgs/development/python-modules/generic/default.nix+2−1
pkgs/development/python-modules/generic/default.nix+2−1
@@ -51,7 +51,7 @@
5151
5252
5353# Keep extra attributes from `attrs`, e.g., `patchPhase', etc.
54−if disabled then throw "${name} not supported for interpreter ${python.executable}" else python.stdenv.mkDerivation (attrs // {
54+python.stdenv.mkDerivation (attrs // {
5555 inherit doCheck;
5656
5757 name = namePrefix + name;
@@ -167,6 +167,7 @@ if disabled then throw "${name} not supported for interpreter ${python.executabl
167167 meta = with lib.maintainers; {
168168 # default to python's platforms
169169 platforms = python.meta.platforms;
170+ broken = disabled;
170171 } // meta // {
171172 # add extra maintainer(s) to every package
172173 maintainers = (meta.maintainers or []) ++ [ chaoflow iElectric ];