forked from M-Labs/artiq
1
0
Fork 0

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
1 changed files with 4 additions and 0 deletions

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 {