Skip to content

Commit

Permalink
Merge pull request #296323 from evils/diffimg
Browse files Browse the repository at this point in the history
python312Packages.diffimg: fix test
  • Loading branch information
kirillrdy authored Mar 17, 2024
2 parents d0f89e7 + a6d212c commit d09d5af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/development/python-modules/diffimg/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
, fetchFromGitHub
, pillow
, unittestCheckHook
, pythonAtLeast
}:

buildPythonPackage rec {
Expand All @@ -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 = [
Expand Down

0 comments on commit d09d5af

Please sign in to comment.