mirror of
https://github.com/vale981/poetry2nix
synced 2025-03-06 17:51:40 -05:00
Merge pull request #865 from cpcloud/mkdocs-material
mkdocs-material: support newer versions
This commit is contained in:
commit
93137da71e
2 changed files with 23 additions and 1 deletions
|
@ -8564,7 +8564,15 @@
|
|||
"setuptools"
|
||||
],
|
||||
"mkdocs-material": [
|
||||
"setuptools"
|
||||
"setuptools",
|
||||
{
|
||||
"buildSystem": "hatchling",
|
||||
"from": "8.5.3"
|
||||
},
|
||||
{
|
||||
"buildSystem": "hatch-nodejs-version",
|
||||
"from": "8.5.3"
|
||||
}
|
||||
],
|
||||
"mkdocs-material-extensions": [
|
||||
{
|
||||
|
|
|
@ -2739,6 +2739,20 @@ 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"' ""
|
||||
'';
|
||||
});
|
||||
}
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue