Merge pull request #689 from crossing/master

Fix build failure when pyproject.toml contains editable path dependencies
This commit is contained in:
adisbladis 2022-08-24 11:55:51 +12:00 committed by GitHub
commit e1e95bbf61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -22,6 +22,7 @@ def main(input, output, fields_to_remove):
any_removed |= dep.pop(field, None) is not None
if any_removed:
dep["version"] = "*"
dep.pop("develop", None)
output.write(tomlkit.dumps(data))

View file

@ -1352,13 +1352,18 @@ lib.composeManyExtensions [
);
pillow = super.pillow.overridePythonAttrs (
old: {
old:
let
preConfigure = (old.preConfigure or "") + pkgs.python3.pkgs.pillow.preConfigure;
in
{
nativeBuildInputs = (old.nativeBuildInputs or [ ])
++ [ pkg-config self.pytest-runner ];
buildInputs = with pkgs; (old.buildInputs or [ ])
++ [ freetype libjpeg zlib libtiff libwebp tcl lcms2 ]
++ lib.optionals (lib.versionAtLeast old.version "7.1.0") [ xorg.libxcb ]
++ lib.optionals (self.isPyPy) [ tk xorg.libX11 ];
preConfigure = lib.optional (old.format != "wheel") preConfigure;
}
);