Python Poetry Derivation Infinite Recursion

It’s been a while since I was up to my elbows in Nix, and I’m having difficulty remembering some simple things, so I’m asking for assistance.

I’m trying to get zfs-replicate’s shipped default.nix derivation to work with the latest nixpkgs, and to that end, I set up a GitHub action to run nix-build for this derivation. Unfortunately, I get infinite recursion, and I’m unsure of where I can go from here:

If anyone has pointers or would be willing to submit a pull request to fix the derivation, I’d be super appreciative.