mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
imgp: 2.8 → 2.9
This commit is contained in:
parent
07a7e0980c
commit
8324b5104b
@ -1,21 +1,17 @@
|
|||||||
{ lib, fetchFromGitHub, buildPythonApplication, pillow, imgp }:
|
{ lib, fetchFromGitHub, buildPythonApplication, pythonOlder, pillow }:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "imgp";
|
pname = "imgp";
|
||||||
version = "2.8";
|
version = "2.9";
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "jarun";
|
owner = "jarun";
|
||||||
repo = pname;
|
repo = "imgp";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1miabaxd5pwxn0va4drzj1d4ppxvyqsrrd4xw1j6qr52yci0lms8";
|
hash = "sha256-yQ2BzOBn6Bl9ieZkREKsj1zLnoPcf0hZhZ90Za5kiKA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace imgp \
|
|
||||||
--replace "Image.ANTIALIAS" "Image.Resampling.LANCZOS"
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ pillow ];
|
propagatedBuildInputs = [ pillow ];
|
||||||
|
|
||||||
installFlags = [
|
installFlags = [
|
||||||
@ -36,7 +32,7 @@ buildPythonApplication rec {
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "High-performance CLI batch image resizer & rotator";
|
description = "High-performance CLI batch image resizer & rotator";
|
||||||
homepage = "https://github.com/jarun/imgp";
|
homepage = "https://github.com/jarun/imgp";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3Plus;
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = with maintainers; [ sikmir ];
|
maintainers = with maintainers; [ sikmir ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user