buildPythonPackage: introduce "disabled" argument
Useful to disable the package for specific python versions. Typically usage: disable = isPy3k;
This commit is contained in:
@@ -34,7 +34,10 @@
|
||||
# The difference is that `pythonPath' is not propagated to the user
|
||||
# environment. This is preferrable for programs because it doesn't
|
||||
# pollute the user environment.
|
||||
, pythonPath ? []
|
||||
, pythonPath ? []
|
||||
|
||||
# used to disable derivation, useful for specific python versions
|
||||
, disabled ? false
|
||||
|
||||
, meta ? {}
|
||||
|
||||
@@ -46,6 +49,8 @@
|
||||
|
||||
, ... } @ attrs:
|
||||
|
||||
assert (!disabled);
|
||||
|
||||
# Keep extra attributes from `attrs`, e.g., `patchPhase', etc.
|
||||
python.stdenv.mkDerivation (attrs // {
|
||||
inherit doCheck;
|
||||
|
||||
Reference in New Issue
Block a user