python3Packages.resize-image: init at 0.4.0

New dependency for odl-renderer, for opendisplay stack in home-assistant.
This commit is contained in:
Martin Weinelt
2026-09-27 20:18:24 +02:00
parent 8da3379959
commit 63b99ccb68
2 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
pillow,
python-resize-image,
}:
buildPythonPackage (finalAttrs: {
pname = "resize-image";
version = "0.4.0";
pyproject = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-nlJvyKSUKUNLcleBfrNH3wKh0Q97+d8laIa5POm7IeM=";
};
build-system = [
setuptools
];
dependencies = [
pillow
python-resize-image
];
doCheck = false; # no tests
pythonImportsCheck = [
"resize"
];
__structuredAttrs = true;
meta = {
description = "Commandline utility to resize an image";
homepage = "https://github.com/jaymu53/resize-image";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
})

View File

@@ -18098,6 +18098,8 @@ self: super: with self; {
resend = callPackage ../development/python-modules/resend { };
resize-image = callPackage ../development/python-modules/resize-image { };
resize-right = callPackage ../development/python-modules/resize-right { };
resolvelib = callPackage ../development/python-modules/resolvelib { };