Add overlay that disables checks for packages inherited from nixpkgs

This is a more principled fix to #510 that will hopefully prevent this entire class of errors.
This commit is contained in:
adisbladis 2022-01-17 22:05:58 +12:00
parent 83a135e781
commit 504dc068bb
2 changed files with 11 additions and 5 deletions

View file

@ -222,10 +222,21 @@ lib.makeScope pkgs.newScope (self: {
setuptools-scm = super.setuptools_scm;
}
)
# Fix infinite recursion in a lot of packages because of checkInputs
(self: super: lib.mapAttrs
(name: value: (
if lib.isDerivation value && lib.hasAttr "overridePythonAttrs" value
then value.overridePythonAttrs (_: { doCheck = false; })
else value
))
super)
# Null out any filtered packages, we don't want python.pkgs from nixpkgs
(self: super: builtins.listToAttrs (builtins.map (x: { name = moduleName x.name; value = null; }) incompatible))
# Create poetry2nix layer
baseOverlay
] ++ # User provided overrides
(if builtins.typeOf overrides == "list" then overrides else [ overrides ])
);

View file

@ -1362,11 +1362,6 @@ self: super:
}
);
pyparsing = super.pyparsing.overridePythonAttrs (old: {
# Prevent infinite recursion since checkInputs brings in coverage which in turn depends on pyparsing
doCheck = false;
});
pyproject-flake8 = super.pyproject-flake8.overridePythonAttrs (
old: {
buildInputs = (old.buildInputs or [ ]) ++ [ self.flit-core ];