1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 libavif, 7 pillow, 8 pytestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "pillow-avif-plugin"; 13 version = "1.5.2"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "fdintino"; 18 repo = "pillow-avif-plugin"; 19 tag = "v${version}"; 20 hash = "sha256-gdDVgVNympxlTzj1VUqO+aU1/xWNjDm97a0biOTlKtA="; 21 }; 22 23 build-system = [ setuptools ]; 24 25 buildInputs = [ libavif ]; 26 27 dependencies = [ pillow ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 meta = { 32 description = "Pillow plugin that adds support for AVIF files"; 33 homepage = "https://github.com/fdintino/pillow-avif-plugin"; 34 license = lib.licenses.bsd2; 35 maintainers = with lib.maintainers; [ ratcornu ]; 36 }; 37}