buildPythonPackage: avoid recursion

Sometimes an infinite recursion error shows up.
This commit is contained in:
Frederik Rietdijk 2021-03-25 09:21:05 +01:00
parent 302e6a7512
commit 09147517ea

View file

@ -104,11 +104,13 @@ else
let
inherit (python) stdenv;
name_ = name;
self = toPythonModule (stdenv.mkDerivation ((builtins.removeAttrs attrs [
"disabled" "checkPhase" "checkInputs" "doCheck" "doInstallCheck" "dontWrapPythonPrograms" "catchConflicts" "format"
]) // {
name = namePrefix + name;
name = namePrefix + name_;
nativeBuildInputs = [
python