Revert "pythonPackages: set mainProgram to pname by default"

It's now the case that `nix run` checks `pname` as well as `name`, so
this is no longer needed. See:
https://github.com/NixOS/nix/commit/a2473823d748b0249804d393c739622146954d02

This reverts commit baf91ea7d9.
This commit is contained in:
Malo Bourgon
2022-05-10 11:51:54 -07:00
parent 189af8d922
commit 44d5d31d98
@@ -176,8 +176,6 @@ let
# default to python's platforms
platforms = python.meta.platforms;
isBuildPythonPackage = python.meta.platforms;
} // lib.optionalAttrs (attrs?pname) {
mainProgram = attrs.pname;
} // meta;
} // lib.optionalAttrs (attrs?checkPhase) {
# If given use the specified checkPhase, otherwise use the setup hook.