Skip to content

Commit

Permalink
fix(mkdocs-material): remove requirements.txt from pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Oct 10, 2024
1 parent 34bbf51 commit f72f68e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions overrides/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4316,11 +4316,9 @@ lib.composeManyExtensions [
});

mkdocs-material = prev.mkdocs-material.overridePythonAttrs (old: {
postPatch = old.postPatch or "" + lib.optionalString (old.version == "8.5.4") ''
sed -i 's/filename = "requirements.txt"//' pyproject.toml
sed -i '/\[project\]/a dependencies = ["jinja2>=3.0.2", "markdown>=3.2", "mkdocs>=1.3", "mkdocs-material-extensions>=1.0.3", "pygments>=2.12", "pymdown-extensions>=9.4", "requests>=2.26"]' pyproject.toml
postPatch = old.postPatch or "" + ''
substituteInPlace pyproject.toml --replace-warn 'filename = "requirements.txt"' ""
'';

});

# patch mkdocstrings to fix jinja2 imports
Expand Down

0 comments on commit f72f68e

Please sign in to comment.