toPythonApplication
pkgs.pythonPackages.toPythonApplication
Docs pulled from | This Revision | about 1 hour ago
Convert a Python library to an application.
Noogle detected
Implementation
The following is the current implementation of this function.
toPythonApplication =
drv:
drv.overrideAttrs (oldAttrs: {
passthru = (oldAttrs.passthru or { }) // {
# Remove Python prefix from name so we have a "normal" name.
# While the prefix shows up in the store path, it won't be
# used by `nix-env`.
name = removePythonPrefix oldAttrs.name;
pythonModule = false;
};
});