flake: fix deprecated 'U' mode in outputcheck for python 3.11

This commit is contained in:
Florian Agbuya 2023-09-06 18:55:24 +08:00 committed by Sébastien Bourdeauducq
parent 1ec1ab0502
commit 2f3329181c

View File

@ -91,6 +91,10 @@
sha256 = "1y27vz6jq6sywas07kz3v01sqjd0sga9yv9w2cksqac3v7wmf2a0";
};
prePatch = "echo ${version} > RELEASE-VERSION";
postPatch = ''
substituteInPlace OutputCheck/Driver.py \
--replace "argparse.FileType('rU')" "argparse.FileType('r')"
'';
};
libartiq-support = pkgs.stdenv.mkDerivation {