Skip to content

Commit

Permalink
No more pyproject bootstrap hooks required \o/
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Nov 20, 2024
1 parent 78d525c commit 7be51b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 30 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 0 additions & 24 deletions overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -194,29 +194,6 @@ let

};

# Work around a much larger set of bootstrap dependencies for Python 3.9.
# TODO: Make a nicer mechanism for bootstrap hermeticity
python39Fixups =
final: prev:
if builtins.compareVersions "3.9" prev.python.pythonVersion <= 0 then
lib.genAttrs
[
"importlib-metadata"
"setuptools"
"setuptools-scm"
"typing-extensions"
"zipp"
"setuptools"
]
(
name:
prev.${name}.override {
pyprojectHook = final.pyprojectBootstrapHook;
}
)
else
{ };

# Create a resolveBuildSystem function in the same way as pyproject.nix with fallback behaviour.
# Uses the dependency names of this project as the memoisation names.
mkResolveBuildSystem =
Expand All @@ -240,6 +217,5 @@ lib.composeManyExtensions [
overlay
buildSystemOverrides
overrides
python39Fixups
memoiseBuildSystems
]

0 comments on commit 7be51b9

Please sign in to comment.