···11-22-33-catch_conflicts.py
44-==================
55-66-The file catch_conflicts.py is in a subdirectory because, if it isn't, the
77-/nix/store/ directory is added to sys.path causing a delay when building.
88-99-Pointers:
1010-1111-- https://docs.python.org/3/library/sys.html#sys.path
1212-1313-- https://github.com/NixOS/nixpkgs/pull/23600
···7979 postFixup = ''
8080 wrapPythonPrograms
8181 '' + lib.optionalString catchConflicts ''
8282- # Check if we have two packages with the same name in the closure and fail.
8383- # If this happens, something went wrong with the dependencies specs.
8484- # Intentionally kept in a subdirectory, see catch_conflicts/README.md.
8585- ${python.interpreter} ${./catch_conflicts}/catch_conflicts.py
8282+ # check if we have two packages with the same name in closure and fail
8383+ # this shouldn't happen, something went wrong with dependencies specs
8484+ ${python.interpreter} ${./catch_conflicts.py}
8685 '' + attrs.postFixup or '''';
87868887 passthru = {
···9998 isBuildPythonPackage = python.meta.platforms;
10099 };
101100})
101101+102102+