Merge pull request #296323 from evils/diffimg

python312Packages.diffimg: fix test
This commit is contained in:
kirillrdy
2024-03-17 20:53:01 +11:00
committed by GitHub
@@ -3,6 +3,7 @@
, fetchFromGitHub
, pillow
, unittestCheckHook
, pythonAtLeast
}:
buildPythonPackage rec {
@@ -21,7 +22,10 @@ buildPythonPackage rec {
# fix offered to upstream https://github.com/nicolashahn/diffimg/pull/6
postPatch = ''
substituteInPlace diffimg/test.py \
--replace "from diff import diff" "from diffimg.diff import diff"
--replace-warn "from diff import diff" "from diffimg.diff import diff"
'' + lib.optionalString (pythonAtLeast "3.12") ''
substituteInPlace diffimg/test.py \
--replace-warn "3503192421617232" "3503192421617233"
'';
propagatedBuildInputs = [