Skip to content

Allow overriding Python version when calling the opsqueue_python Nix package#96

Merged
OpsBotPrime merged 1 commit intomasterfrom
python-allow_overriding
Apr 22, 2026
Merged

Allow overriding Python version when calling the opsqueue_python Nix package#96
OpsBotPrime merged 1 commit intomasterfrom
python-allow_overriding

Conversation

@Qqwy
Copy link
Copy Markdown
Contributor

@Qqwy Qqwy commented Apr 20, 2026

Without this, if e.g. a user of the Nix Python package builds their own python that is separate from pkgs.python3 (e.g. rather than overriding that one in an overlay, they create a separate one), it is likely that the resulting wheel / compiled FFI module is not placed in the right location, which makes the build fail (at the 'can I find all the imports' step).

This PR fixes that, by adding python = ... to the parameters of opsqueue_python.nix meaning that a user can do callPackage "......./opsqueue_python.nix" { python = myOtherPython; }; and be merry.

@Qqwy
Copy link
Copy Markdown
Contributor Author

Qqwy commented Apr 22, 2026

@OpsBotPrime merge

@OpsBotPrime
Copy link
Copy Markdown
Contributor

Rebased as 54475ae, waiting for CI …

@OpsBotPrime
Copy link
Copy Markdown
Contributor

CI job 🟡 started.

@OpsBotPrime OpsBotPrime force-pushed the python-allow_overriding branch from 5664e21 to 54475ae Compare April 22, 2026 14:57
@OpsBotPrime OpsBotPrime merged commit 54475ae into master Apr 22, 2026
6 of 7 checks passed
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.

2 participants