Repository navigation
python3Packages.dfdiskcache: relax pandas<3 upper bound - #540439
Merged
Merged
Conversation
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
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.
Member
|
but does it support pandas v3? Maybe open an upstream issue? |
henrirosten
approved these changes
Jul 21, 2026
Member
|
Thanks @fredclausen, verified locally on x86_64-linux:
Upstream still pins pandas<3 as of v0.1.0, so relaxing the constraint makes sense even if the package gets bumped later. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.