imgp: fix compat with pillow 10.0
https://hydra.nixos.org/build/229798758/nixlog/4/tail https://pillow.readthedocs.io/en/stable/deprecations.html#constants
This commit is contained in:
parent
ce181b4dd0
commit
1f4ccf115c
|
@ -11,6 +11,11 @@ buildPythonApplication rec {
|
|||
sha256 = "1miabaxd5pwxn0va4drzj1d4ppxvyqsrrd4xw1j6qr52yci0lms8";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace imgp \
|
||||
--replace "Image.ANTIALIAS" "Image.Resampling.LANCZOS"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ pillow ];
|
||||
|
||||
installFlags = [
|
||||
|
|
Loading…
Reference in a new issue