revert: mkdocs-material: support newer versions

This reverts commit 6b0a8b6f01.
This commit is contained in:
Phillip Cloud 2022-12-12 08:13:00 -05:00
parent 93137da71e
commit a31b66eb70
No known key found for this signature in database
GPG key ID: D908212070FD785E

View file

@ -2739,20 +2739,6 @@ lib.composeManyExtensions [
mkdocs = super.mkdocs.overridePythonAttrs (old: {
propagatedBuildInputs = old.propagatedBuildInputs or [ ] ++ [ self.babel ];
});
# hatch-requirements-txt has a huge set of circular dependencies which
# are only used at build time, and none of which are required to use
# mkdocs-material as a dependency, so we remove the part of
# pyproject.toml that requires it
mkdocs-material = super.mkdocs-material.overridePythonAttrs (old: {
postPatch = pkgs.optionalString (lib.versionAtLeast old.version "8.5.3") ''
substituteInPlace pyproject.toml \
--replace ', "hatch-requirements-txt"' "" \
--replace '"hatch-requirements-txt",' "" \
--replace '[tool.hatch.metadata.hooks.requirements_txt]' "" \
--replace 'filename = "requirements.txt"' ""
'';
});
}
)