it supporting apt doesn't mean it "relies on apt". Looking at the list of options, it supports multiple package managers, including ones for Windows and MacOS.
but then, if one needs to use low-level primitives representing specific package managers, it's hardly aligned with a claim of "super fast infrastructure automation". With Nix I have exactly one package manager for any target platform.
* https://pyinfra.readthedocs.io/en/v0.14.5/search.html?q=wind...
* https://pyinfra.readthedocs.io/en/v0.14.5/search.html?q=maco...