Skip to content

Commit

Permalink
Merge pull request #277412 from sikmir/imgp
Browse files Browse the repository at this point in the history
imgp: 2.8 → 2.9
  • Loading branch information
sikmir authored Jan 10, 2024
2 parents 5e2375d + 8324b51 commit 5fcfdd4
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions pkgs/applications/graphics/imgp/default.nix
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
{ lib, fetchFromGitHub, buildPythonApplication, pillow, imgp }:
{ lib, fetchFromGitHub, buildPythonApplication, pythonOlder, pillow }:

buildPythonApplication rec {
pname = "imgp";
version = "2.8";
version = "2.9";
disabled = pythonOlder "3.8";

src = fetchFromGitHub {
owner = "jarun";
repo = pname;
repo = "imgp";
rev = "v${version}";
sha256 = "1miabaxd5pwxn0va4drzj1d4ppxvyqsrrd4xw1j6qr52yci0lms8";
hash = "sha256-yQ2BzOBn6Bl9ieZkREKsj1zLnoPcf0hZhZ90Za5kiKA=";
};

postPatch = ''
substituteInPlace imgp \
--replace "Image.ANTIALIAS" "Image.Resampling.LANCZOS"
'';

propagatedBuildInputs = [ pillow ];

installFlags = [
Expand All @@ -36,7 +32,7 @@ buildPythonApplication rec {
meta = with lib; {
description = "High-performance CLI batch image resizer & rotator";
homepage = "https://github.com/jarun/imgp";
license = licenses.gpl3;
license = licenses.gpl3Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ sikmir ];
};
Expand Down

0 comments on commit 5fcfdd4

Please sign in to comment.