1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

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

This commit is contained in:
Peter Hoeg 2024-07-29 09:39:17 +02:00
parent bae4cbbdb8
commit 15d31625fe

View file

@ -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 ];