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:
parent
bae4cbbdb8
commit
15d31625fe
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue