← Back to Pull requests

esphome: 2026.10.2 -> 2026.11.0 #590030

Merged
jalr merged 4 files (85 lines) on Nov 19, 2026 18:09 UTC
View on GitHub
jalr jalr commented on Nov 18, 2026 19:20 UTC
Author

Update esphome to 2026.11.0.

Upstream now requires paho-mqtt 2.x, so this PR also adds python3Packages.paho-mqtt_2 (2.2.0) and switches the esphome Python override from paho-mqtt_1 to paho-mqtt_2. paho-mqtt_1 is left untouched for other consumers.

Changes:

  • python3Packages.paho-mqtt_2: init at 2.2.0

  • esphome: 2026.10.2 -> 2026.11.0

  • esphome: bump the setuptools pin in postPatch (84.0.0 -> 84.2.1)
  • Changelogs:

  • esphome: https://github.com/esphome/esphome/releases/tag/2026.11.0

  • paho-mqtt: https://github.com/eclipse-paho/paho.mqtt.python/blob/v2.2.0/ChangeLog.txt
  • Things done

  • Fits [CONTRIBUTING.md], [pkgs/README.md], [maintainers/README.md] and other READMEs.

  • Follows the [automation/AI policy].

  • Built on platform:

  • - [x] x86_64-linux
    - [ ] aarch64-linux
    - [ ] aarch64-darwin
  • Tested, as applicable:

  • - [x] Basic functionality of all binary files, usually in ./result/bin/.
    - [ ] Ran nixpkgs-review on this PR. See [nixpkgs-review usage].
    - [ ] [Package tests] at passthru.tests.
    - [ ] [NixOS tests] in [nixos/tests].
    - [ ] Tests in [lib/tests] or [pkgs/test] for functions and "core" functionality.
  • [Nixpkgs Release Notes]

  • - [ ] Package update: when the change is major or breaking.
  • [NixOS Release Notes]

  • - [ ] Module addition: when adding a new NixOS module.
    - [ ] Module update: when the change is significant.

    [Package tests]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#package-tests
    [NixOS tests]: https://nixos.org/manual/nixos/unstable/index.html#sec-nixos-tests
    [nixpkgs-review usage]: https://github.com/Mic92/nixpkgs-review#usage

    [CONTRIBUTING.md]: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md
    [automation/AI policy]: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#automationai-policy
    [lib/tests]: https://github.com/NixOS/nixpkgs/blob/master/lib/tests
    [maintainers/README.md]: https://github.com/NixOS/nixpkgs/blob/master/maintainers/README.md
    [nixos/tests]: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests
    [pkgs/README.md]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md
    [pkgs/test]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/test
    [Nixpkgs Release Notes]: https://github.com/NixOS/nixpkgs/blob/master/doc/release-notes
    [NixOS Release Notes]: https://github.com/NixOS/nixpkgs/blob/master/nixos/doc/manual/release-notes

    Diff: 85 lines (+6 / -79) across 4 files Reviewer: SuperSandro2000 Review duration: 1368m
    All Vouch review confidence checks passed
    Residual risk 0.06 = Change Risk (0.34) × (1 − Review Confidence (0.81)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.34 · 85 lines diff across 4 files
    0.34
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.70 · 3 substantive comment(s)
    0.70
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    81%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.266
    Real PR Conversation Timeline
    6 items
    thanegill thanegill commented on code on Nov 18, 2026 21:09 UTC
    Code Review
    pkgs/development/python-modules/paho-mqtt/2.nix:1
    @@ -0,0 +1,57 @@
    +{
    +  lib,
    +  buildPythonPackage,
    +  fetchFromGitHub,
    +  hatchling,
    +  openssl,
    +  pytestCheckHook,
    +  pytest-mock,
    +  six,
    +}:
    +
    +let
    +  testing = fetchFromGitHub {
    +    owner = "eclipse-paho";
    +    repo = "paho.mqtt.testing";
    +    rev = "fdab9d2b1ce125385135e5d9f282a0ad315268cc";
    +    hash = "sha256-E0YvlsOQCOXHaOOgXOs9AbOZkw331NNM8nN4okchPFI=";
    +  };
    +in
    +buildPythonPackage (finalAttrs: {
    +  pname = "paho-mqtt";
    +  version = "2.2.0";
    +  pyproject = true;
    +
    +  src = fetchFromGitHub {
    +    owner = "eclipse-paho";
    +    repo = "paho.mqtt.python";
    +    tag = "v${finalAttrs.version}";
    +    hash = "sha256-gYCV8n+pNh62eDitfh4/mj4wu24GEthRtWV5Pa6M9bY=";
    +  };
    +
    +  build-system = [ hatchling ];
    +
    +  nativeCheckInputs = [
    +    openssl
    +    pytestCheckHook
    +    pytest-mock
    +    six
    +  ];
    +
    +  preCheck = ''
    +    export HOME=$(mktemp -d)
    +    export PYTHONPATH=$PWD:$PYTHONPATH
    +    patchShebangs tests/ssl/gen.sh
    +    ln -s ${testing} paho.mqtt.testing
    +  '';
    +
    +  pythonImportsCheck = [ "paho.mqtt" ];
    +

      passthru.updateScript = nix-update-script { extraArgs = [ "--use-github-releases" ]; };
    

    hesiod hesiod commented on Nov 19, 2026 02:52 UTC
    Reviewer

    No need to add paho-mqtt_2, we have paho-mqtt which is at version 2.2.0 already. You can also rip out the whole python3Packages.python.override thing, that won't be necessary anymore. And if you'd like you can go ahead and drop paho-mqtt_1 again (it has already been dropped once in the past) since we don't have any other consumers for that library anymore.

    jalr jalr commented on Nov 19, 2026 10:22 UTC
    Author

    Updated the PR based on the review:

  • Dropped the new paho-mqtt_2 package and use the existing paho-mqtt (2.2.0) instead.

  • Removed the python3Packages.python.override from esphome.

  • Dropped paho-mqtt_1 (with a throw alias in python-aliases.nix), as it has no consumers left.
  • Thanks @thanegill and @hesiod for the review!

    SuperSandro2000 SuperSandro2000 approved these changes on Nov 19, 2026 17:54 UTC
    Approved Reviewer

    Approved these changes.

    SuperSandroBot SuperSandroBot commented on Nov 19, 2026 18:04 UTC
    Contributor

    :white_check_mark: nixpkgs-review result

    Generated using nixpkgs-review-gha (624a2c3)

    Command: nixpkgs-review pr 590030
    Commit: 670cb3680e3ecbbc047cb5fdb2868c616a7e2a30 (subsequent changes)
    Merge: 12e395f34fb2a40ac26f9063d08e9a1d85c95346

    Logs: https://github.com/SuperSandro2000/nixpkgs-review-gha/actions/runs/44582283837/attempts/1

    ---

    x86_64-linux


    <details>
    <summary>:fast_forward: 2 packages present in ofBorgs evaluation, but not found in the checkout:</summary>
    <ul>
    <li>python313Packages.paho-mqtt_1</li>
    <li>python314Packages.paho-mqtt_1</li>
    </ul>
    </details>
    <details>
    <summary>:white_check_mark: 2 packages built:</summary>
    <ul>
    <li>esphome</li>
    <li>esphome-device-builder</li>
    </ul>
    </details>

    Assignees
    jalr jalr
    Labels
    risk: low confidence: 81.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 34% (LOW) · Higher = larger blast radius
    34%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 81.5% · Lower = rushed or shallow review
    81.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 6.3% · Safe to merge
    6.3%
    Repository