buildPythonPackage: fail if two packages with the same name are in closure

This commit is contained in:
Domen Kožar
2015-11-18 11:46:21 +01:00
parent f3092d6446
commit f900231042
2 changed files with 33 additions and 0 deletions

View File

@@ -103,6 +103,10 @@ python.stdenv.mkDerivation (builtins.removeAttrs attrs ["disabled"] // {
postFixup = attrs.postFixup or ''
wrapPythonPrograms
# check if we have two packagegs with the same name in closure and fail
# this shouldn't happen, something went wrong with dependencies specs
python ${./do_conflict.py}
'';
shellHook = attrs.shellHook or ''