From 2f3329181c2579ed77334e5875e8698a804be91d Mon Sep 17 00:00:00 2001 From: Florian Agbuya Date: Wed, 6 Sep 2023 18:55:24 +0800 Subject: [PATCH] flake: fix deprecated 'U' mode in outputcheck for python 3.11 --- flake.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flake.nix b/flake.nix index a8e740fb8..ae95ee250 100644 --- a/flake.nix +++ b/flake.nix @@ -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 {