Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Comment thread
evils marked this conversation as resolved.
'' + lib.optionalString (pythonAtLeast "3.12") ''
substituteInPlace diffimg/test.py \
--replace-warn "3503192421617232" "3503192421617233"
Comment thread
evils marked this conversation as resolved.
'';

propagatedBuildInputs = [
Expand Down