python3.pkgs.sphinxHook: fix co-installability of generated documentation

Include full $name of the derivation into docdir, so documentation for
python package "foo" is installed into $out/share/doc/python3.10-foo-1.2.3
instead of just $out/share/doc/foo, where it may conflict with some
other package named "foo" and not-coinstallable with different
versions of the same python package.

Change from $name to $pname was introduced in [1ee5fca], probably as
unindented side-effect of adding support for formats other than html.
This commit is contained in:
Dmitry Bogatov 2023-01-03 20:23:31 -05:00
parent 60351e048d
commit 82ae2e8f06

View File

@ -57,7 +57,7 @@ installSphinxPhase() {
else
# shellcheck disable=2154
docdir="${doc:-$out}/share/doc/${pname}"
docdir="${doc:-$out}/share/doc/${name}"
mkdir -p "$docdir"