I’m trying to change the version for python311Packages.pillow
(https://github.com/NixOS/nixpkgs/blob/057f9aecfb71c4437d2b27d3323df7f93c010b7e/pkgs/development/python-modules/pillow/default.nix). I’m using the following overlay:
packageVersionsOverlay = self: super:
{
python310 = super.python310.override {
packageOverrides = pyself: pysuper: {
pillow = pysuper.pillow.overridePythonAttrs (pillowAttrs: rec {
doCheck = false;
version = "9.5.0";
src = pysuper.fetchPypi {
inherit version;
pname = "Pillow";
hash = "sha256-v1SEedM2cm16Ds6252fhefveN4M65CeUYCYxoHDWMPE=";
};
});
};
};
};
which I think makes sense? I think use it in my derivation:
let
py = pkgs.python310Packages;
in py.buildPythonPackage {
....
propagatedBuildInputs = with py; [
pillow
]
....
}
but I get a build error that zlib
is missing:
The headers or library files could not be found for zlib,
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
I don’t get this error without the overlay since zlib
is included in the buildInputs
(https://github.com/NixOS/nixpkgs/blob/057f9aecfb71c4437d2b27d3323df7f93c010b7e/pkgs/development/python-modules/pillow/generic.nix#L44), but shouldn’t I also have that same buildInputs
?