Skip to content

Add Python devshell #1400

Open
Mshehu5 wants to merge 1 commit intopayjoin:masterfrom
Mshehu5:py_devshell
Open

Add Python devshell #1400
Mshehu5 wants to merge 1 commit intopayjoin:masterfrom
Mshehu5:py_devshell

Conversation

@Mshehu5
Copy link
Contributor

@Mshehu5 Mshehu5 commented Mar 9, 2026

Adds nix develop .#python for payjoin-ffi/python work. Provides uv, Python, and Rust MSRV in one shell.

superseeds #864
went through comments and followed the nix2python approach as suggested by Yuval in PR

Address #457 (comment)

Note to reviewers:
should we make the script in contrib/test.sh also what runs in CI python.yaml to keep changes consistent or keep current worklow

co authored using claude sonnet 4.6

Pull Request Checklist

Please confirm the following before requesting review:

@Mshehu5 Mshehu5 marked this pull request as ready for review March 9, 2026 16:39
@Mshehu5
Copy link
Contributor Author

Mshehu5 commented Mar 9, 2026

@benalleng would Appreciate a review

@coveralls
Copy link
Collaborator

coveralls commented Mar 9, 2026

Pull Request Test Coverage Report for Build 22877321807

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 83.507%

Totals Coverage Status
Change from base Build 22866682076: 0.0%
Covered Lines: 10688
Relevant Lines: 12799

💛 - Coveralls

@benalleng benalleng self-requested a review March 9, 2026 16:45
flake.nix Outdated
builtins.removeAttrs pythonWorkspace.deps.all [ "payjoin" ]
)).overrideAttrs
{
# Remove reflexive symlink to prevent fixupPhase failure (noBrokenSymlinks).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add an additional comment that we believe this is an error upstream to remind us to check the pyproject-nix repo to see if they got a change merged for us to be able to remove this hack

Copy link
Collaborator

@benalleng benalleng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, go ahead and make an issue upstream and link it in the comment about the preFixup phase hack to

Adds `nix develop .#python` for payjoin-ffi/python work.
Provides uv, Python, and Rust MSRV in one shell.

Co-Authored-By: Brandon Lucas <thebrandonlucas@users.noreply.github.com>
Copy link
Collaborator

@benalleng benalleng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TACK d56b981 Nice and clean setup, makes testing python so much simpler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants