Skip to content

python3Packages.dfdiskcache: relax pandas<3 upper bound - #540439

Merged
FliegendeWurst merged 1 commit into
NixOS:masterfrom
fredclausen:fix/dfdiskcache-pandas3
Jul 21, 2026
Merged

FliegendeWurst merged 1 commit into
NixOS:masterfrom
fredclausen:fix/dfdiskcache-pandas3

Conversation

@fredclausen

@fredclausen fredclausen commented Jul 10, 2026 •

Copy link
Copy Markdown
Contributor

nixpkgs bumped pandas to 3.0.4, which trips df-diskcache's pinned 'pandas<3,>=1' runtime dependency check. Upstream still pins pandas<3 as of the v0.1.0 tag.

Things done

nixpkgs bumped pandas to 3.0.4, which trips df-diskcache's pinned
'pandas<3,>=1' runtime dependency check. Upstream still pins pandas<3
as of the v0.1.0 tag (no indication of pandas 3 testing), but the
package's own test suite (4/4) passes fine against pandas 3.0.4 here.

This was breaking the sbomnix build, which depends on dfdiskcache.

https://github.com/thombashi/df-diskcache/blob/v0.1.0/requirements/requirements.txt
@nixpkgs-ci
nixpkgs-ci Bot requested a review from henrirosten July 10, 2026 17:13
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 12.first-time contribution This PR is the author's first one; please be gentle! 6.topic: python Python is a high-level, general-purpose programming language. labels Jul 10, 2026
fredclausen added a commit to fredsystems/nixos that referenced this pull request Jul 12, 2026
nixpkgs bumped pandas to 3.0.4 in the update carried by PR #1970,
which trips df-diskcache 0.0.2's pinned 'pandas<3,>=1' runtime
dependency check.  df-diskcache is a transitive dep of sbomnix, so
the failed check propagates: every sbomnix build aborts, both the
transitive one during host evaluation and the standalone '.#sbomnix'
package the weekly CVE scan invokes.

Upstream v0.1.0 still pins pandas<3 (no indication of pandas 3
testing), but per NixOS/nixpkgs#540439 the package itself works fine
against pandas 3.x.  Apply the same one-line fix here as a
pythonPackagesExtensions overlay: append 'pandas' to dfdiskcache's
pythonRelaxDeps.  The overlay is imported by both mk-system.nix and
flake/dev/packages.nix, so it covers every consumer of sbomnix in
the flake.

Registered in .github/tracked-upstream-fixes.json as
nixpkgs-540439-dfdiskcache-pandas3 so the weekly upstream-fix
tracker flags this workaround for removal once the fix lands in
our pinned nixpkgs.  Uses pkgs-min-version with min_version=null
(BLOCKED, since the dfdiskcache version does not change with the
fix) plus upstream_pr=540439 so the checker reports PR merge status.

Verified '.#sbomnix' builds cleanly on x86_64-linux with the overlay
applied; all nine nixosConfigurations still evaluate.

Unblocks #1970.
@pbsds

pbsds commented Jul 18, 2026

Copy link
Copy Markdown
Member

but does it support pandas v3? Maybe open an upstream issue?

@henrirosten

Copy link
Copy Markdown
Member

Thanks @fredclausen, verified locally on x86_64-linux:

  • python3Packages.dfdiskcache builds with this change and the upstream test suite passes against pandas 3.0.4 / python 3.14.6 (4 passed, nothing skipped). The tests cover set/get roundtrips, TTL expiration, touch, prune and delete with real DataFrames, so pandas compatibility is actually tested here.
  • sbomnix currently fails to build on master because of this pin. With the changes from this PR applied, it builds again and the resulting binary works. So this PR fixes the sbomnix build too.

Upstream still pins pandas<3 as of v0.1.0, so relaxing the constraint makes sense even if the package gets bumped later.

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Jul 21, 2026
@FliegendeWurst
FliegendeWurst added this pull request to the merge queue Jul 21, 2026
Merged via the queue into NixOS:master with commit 9699a40 Jul 21, 2026
34 of 36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. 12.first-time contribution This PR is the author's first one; please be gentle!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants