Merge pull request #296323 from evils/diffimg
python312Packages.diffimg: fix test
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user