Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/languages-frameworks/python.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ are used in [`buildPythonPackage`](#buildpythonpackage-function).
- `pythonRelaxDepsHook` will relax Python dependencies restrictions for the package.
See [example usage](#using-pythonrelaxdepshook).
- `pythonRemoveBinBytecode` to remove bytecode from the `/bin` folder.
- `setuptoolsBuildHook` to build a wheel using `setuptools`.
- `setuptoolsBuildHook` executes`setup.py` directly, which is deprecated. Use the `pypaBuildHook` instead.
- `sphinxHook` to build documentation and manpages using Sphinx.
- `venvShellHook` to source a Python 3 `venv` at the `venvDir` location. A
`venv` is created if it does not yet exist. `postVenvCreation` can be used to
Expand Down
7 changes: 4 additions & 3 deletions pkgs/development/interpreters/python/mk-python-derivation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,12 @@ let

isSetuptoolsDependency = isSetuptoolsDependency' (attrs.pname or null);

name = namePrefix + attrs.name or "${finalAttrs.pname}-${finalAttrs.version}";

in
(cleanAttrs attrs)
// {

name = namePrefix + attrs.name or "${finalAttrs.pname}-${finalAttrs.version}";
inherit name;

inherit catchConflicts;

Expand Down Expand Up @@ -314,7 +315,7 @@ let
unzip
]
++ optionals (format' == "setuptools") [
setuptoolsBuildHook
(lib.warn "${name} uses the deprecated setuptools format. Remove `format` and configure `pyproject = true` and `build-system = [ setuptools ]` instead." setuptoolsBuildHook)
]
++ optionals (format' == "pyproject") [
(
Expand Down
Loading