Skip to content

Commit

Permalink
Update flake, fix pyrad build
Browse files Browse the repository at this point in the history
The build fails for me with

      File "/nix/store/3wbw03q2z5d7ys1pzp30rmzn6qcxnyrp-python3.12-poetry-core-2.0.0/lib/python3.12/site-packages/poetry/core/masonry/metadata.py", line 112, in from_package
        if name == "repository" and url == package.urls["Repository"]:
                                           ~~~~~~~~~~~~^^^^^^^^^^^^^^
    KeyError: 'Repository'
    error: subprocess-exited-with-error

Making the `repository` key in the `urls` section of `pyproject.toml`
fixes the build.

There's a pending upstream PR doing the same: pyradius/pyrad#209
  • Loading branch information
Ma27 committed Jan 25, 2025
1 parent bf5a5bf commit f63f1d3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
38 changes: 19 additions & 19 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion poetry2nix-python-overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ pkgs:
pyrad = prev.pyrad.overrideAttrs (oA: {
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "poetry.masonry.api" "poetry.core.masonry.api"
--replace-fail "poetry.masonry.api" "poetry.core.masonry.api" \
--replace-fail "repository =" "Repository ="
'';
});
msgraph-sdk = prev.msgraph-sdk.overrideAttrs (oA: {
Expand Down

0 comments on commit f63f1d3

Please sign in to comment.