mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-04 16:51:40 -05:00
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:
parent
83a135e781
commit
504dc068bb
2 changed files with 11 additions and 5 deletions
11
default.nix
11
default.nix
|
@ -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 ])
|
||||
);
|
||||
|
|
|
@ -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 ];
|
||||
|
|
Loading…
Add table
Reference in a new issue