...to avoid the risk of downloading a different version than the package name suggests (i.e. on the next version bump).
ninja is a build system written in C++ that just happens to use python to build/install *itself*. It is not a "python package". After this commit, ninja will be at pkgs.ninja instead of pkgs.pythonPackages.ninja.