Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 libavif, 7 pillow, 8}: 9 10buildPythonPackage rec { 11 pname = "pillow-avif-plugin"; 12 version = "1.4.6"; 13 pyproject = true; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "sha256-hVz1DQP2/Bbh/V42SzzqC3n0v5DTn/ISOWlzXYUeCLo="; 18 }; 19 20 nativeBuildInputs = [ setuptools ]; 21 buildInputs = [ libavif ]; 22 propagatedBuildInputs = [ pillow ]; 23 24 meta = { 25 description = "Pillow plugin that adds support for AVIF files"; 26 homepage = "https://github.com/fdintino/pillow-avif-plugin"; 27 license = lib.licenses.bsd2; 28 maintainers = with lib.maintainers; [ ratcornu ]; 29 }; 30}