From: Chris Lamb <lamby@debian.org>
Date: Sat, 1 Jan 2022 10:00:13 -0400
Subject: Make the docs reproducible

Whilst working on the Reproducible Builds effort [0] I noticed that
python-pipx could not be built reproducibly.

This is because the generated manpages uses values from the build
system, specifically the $HOME directory.

A patch is attached that replaces this with a literal "$HOME" string
(which is arguably more informative...).

[0] https://reproducible-builds.org/

Bug-Debian: https://bugs.debian.org/995865
Forwarded: https://github.com/pypa/pipx/pull/785
---
 src/pipx/main.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/pipx/main.py b/src/pipx/main.py
index 453cff1..a060f48 100644
--- a/src/pipx/main.py
+++ b/src/pipx/main.py
@@ -57,7 +57,7 @@ PIPX_DESCRIPTION = textwrap.dedent(
     Virtual Environment location is {str(constants.PIPX_LOCAL_VENVS)}.
     Symlinks to apps are placed in {str(constants.LOCAL_BIN_DIR)}.
 
-    """
+    """.replace(str(Path.home()), "$HOME")
 )
 PIPX_DESCRIPTION += pipx_wrap(
     """
@@ -104,7 +104,7 @@ INSTALL_DESCRIPTION = textwrap.dedent(
     The default python executable used to install a package is
     {DOC_DEFAULT_PYTHON} and can be overridden
     by setting the environment variable `PIPX_DEFAULT_PYTHON`.
-    """
+    """.replace(str(Path.home()), "$HOME")
 )
 
 
