about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNikolay Korotkiy <sikmir@disroot.org>2024-01-10 23:53:57 +0400
committerGitHub <noreply@github.com>2024-01-10 23:53:57 +0400
commit5fcfdd4990ab907895fe9bcb1e2e4083d92ca670 (patch)
tree8d3e92415423ea4ebfdf46459887d445ab0df21e
parent5e2375d73e583b16bd479a66bca4fbd9fe3b7c32 (diff)
parent8324b5104b99b8e8ad7dc69cddf79ec50c712a91 (diff)
downloadnixlib-5fcfdd4990ab907895fe9bcb1e2e4083d92ca670.tar
nixlib-5fcfdd4990ab907895fe9bcb1e2e4083d92ca670.tar.gz
nixlib-5fcfdd4990ab907895fe9bcb1e2e4083d92ca670.tar.bz2
nixlib-5fcfdd4990ab907895fe9bcb1e2e4083d92ca670.tar.lz
nixlib-5fcfdd4990ab907895fe9bcb1e2e4083d92ca670.tar.xz
nixlib-5fcfdd4990ab907895fe9bcb1e2e4083d92ca670.tar.zst
nixlib-5fcfdd4990ab907895fe9bcb1e2e4083d92ca670.zip
Merge pull request #277412 from sikmir/imgp
imgp: 2.8 → 2.9
-rw-r--r--pkgs/applications/graphics/imgp/default.nix16
1 files changed, 6 insertions, 10 deletions
diff --git a/pkgs/applications/graphics/imgp/default.nix b/pkgs/applications/graphics/imgp/default.nix
index 89887c9f4e87..995aaf2599df 100644
--- a/pkgs/applications/graphics/imgp/default.nix
+++ b/pkgs/applications/graphics/imgp/default.nix
@@ -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 = [
@@ -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 ];
   };