Commit 15d31625 authored by Peter Hoeg's avatar Peter Hoeg
Browse files

pwgen-secure: recent python versions does not like invalid escape sequences

parent bae4cbbd
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -23,8 +23,11 @@ buildPythonApplication rec {
  postPatch = ''
    shareDir=$out/share/${pname}

    substituteInPlace spwgen.py \
      --replace-fail ' \ ' ' \\ '

    substituteInPlace pwgen_secure/rpg.py \
      --replace "os.path.join(path, 'words.txt')" "os.path.join('$shareDir', 'words.txt')"
      --replace-fail "os.path.join(path, 'words.txt')" "os.path.join('$shareDir', 'words.txt')"
  '';

  propagatedBuildInputs = with python3Packages; [ docopt ];