Skip to content

fix(nix): provide Nix-owned Python 3.15.2 in the dev shell - #423

Merged
furedea merged 2 commits into
mainfrom
fix/nix-python-3-15-2
Nov 9, 2026
Merged

furedea merged 2 commits into
mainfrom
fix/nix-python-3-15-2

Conversation

@furedea-agent

@furedea-agent furedea-agent Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

概要

dev shell の Python を Nix 管理の 3.15.2 にする.方針は「Nix がインタプリタ,uv が依存関係」.

変更 内容
nix/packages/python_315.nix 3.15.1 から 3.15.2 に更新.3.15.2 は侵害された eMudhra 中間 CA を ssl モジュールが拒否する最初の版.nixpkgs が 3.15.2 以上になったら外す
flake.nix dev shell に同じ Python パッケージを追加.UV_PYTHON_DOWNLOADS=never,UV_PYTHON_PREFERENCE=only-system を設定
pyproject.toml,uv.lock requires-python を >= 3.15.2, < 3.16 に変更

Home Manager と nix/checks.nix は同じパッケージを参照するため,3.15.2 に揃う.

検証

  • nix flake check: 成功
  • nix develop: python --version は 3.15.2
  • uv run python: sys.executable は .venv で,ベースは Nix の 3.15.2
  • uv run pytest: 164 件成功
  • bats: 成功

Python のソースビルドは main がキャッシュするまで CI で発生する.

Refs #276

🤖 Generated with Claude Code

furedea and others added 2 commits November 10, 2026 00:02
Drop the override once the nixpkgs input ships >= 3.15.2.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Nix owns the interpreter and uv owns dependencies: set UV_PYTHON_DOWNLOADS=never
and UV_PYTHON_PREFERENCE=only-system, and require Python >= 3.15.2.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@furedea

furedea commented Nov 9, 2026

Copy link
Copy Markdown
Owner

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-09T15:03:25.397394Z
We couldn’t complete this review. Comment @codex review to try again.
b6d746e Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Review summary: No blocking findings.

  • python_315.nix now builds 3.15.2. Home Manager, nix/checks.nix and the dev shell all use this one package through callPackage, so they stay on the same version.
  • In the dev shell, UV_PYTHON_DOWNLOADS=never and UV_PYTHON_PREFERENCE=only-system make uv use the Nix interpreter. The CI Python jobs run under nix develop, so they get these settings too.
  • requires-python in pyproject.toml and uv.lock match, and .python-version (3.15) still fits that range.
  • I could not check the new tarball's sha256 in this sandbox. The CI Nix build will catch a wrong hash.

🤖 Generated with Claude Code

@furedea
furedea merged commit 6e5f390 into main Nov 9, 2026
19 of 21 checks passed
@furedea
furedea deleted the fix/nix-python-3-15-2 branch November 9, 2026 15:13
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.

1 participant