summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2015-02-12 20:04:30 +0100
committerPeter Simons <simons@cryp.to>2015-02-12 20:07:56 +0100
commit79a5fec9c053a0b1303e121060a839d4b9ec2e55 (patch)
tree1dbe3cf8f8c14cd37a15b7450031931e1166d3bf /pkgs/development/python-modules
parent9060376bcde5a023b14d80c7bfdb25f5aeabb57f (diff)
downloadnixlib-79a5fec9c053a0b1303e121060a839d4b9ec2e55.tar
nixlib-79a5fec9c053a0b1303e121060a839d4b9ec2e55.tar.gz
nixlib-79a5fec9c053a0b1303e121060a839d4b9ec2e55.tar.bz2
nixlib-79a5fec9c053a0b1303e121060a839d4b9ec2e55.tar.lz
nixlib-79a5fec9c053a0b1303e121060a839d4b9ec2e55.tar.xz
nixlib-79a5fec9c053a0b1303e121060a839d4b9ec2e55.tar.zst
nixlib-79a5fec9c053a0b1303e121060a839d4b9ec2e55.zip
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.
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/generic/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/generic/default.nix b/pkgs/development/python-modules/generic/default.nix
index f0e057e2dd69..7139f449969a 100644
--- a/pkgs/development/python-modules/generic/default.nix
+++ b/pkgs/development/python-modules/generic/default.nix
@@ -51,7 +51,7 @@
 
 
 # Keep extra attributes from `attrs`, e.g., `patchPhase', etc.
-if disabled then throw "${name} not supported for interpreter ${python.executable}" else python.stdenv.mkDerivation (attrs // {
+python.stdenv.mkDerivation (attrs // {
   inherit doCheck;
 
   name = namePrefix + name;
@@ -167,6 +167,7 @@ if disabled then throw "${name} not supported for interpreter ${python.executabl
   meta = with lib.maintainers; {
     # default to python's platforms
     platforms = python.meta.platforms;
+    broken = disabled;
   } // meta // {
     # add extra maintainer(s) to every package
     maintainers = (meta.maintainers or []) ++ [ chaoflow iElectric ];