Skip to content

Revert "python3Packages.dataset: use sqlalchemy_1_4"#477562

Merged
dotlambda merged 6 commits intoNixOS:masterfrom
dotlambda:python3Packages.dataset
Jan 7, 2026
Merged

Revert "python3Packages.dataset: use sqlalchemy_1_4"#477562
dotlambda merged 6 commits intoNixOS:masterfrom
dotlambda:python3Packages.dataset

Conversation

@dotlambda
Copy link
Member

@dotlambda dotlambda commented Jan 6, 2026

This partially reverts #380276 because only unversioned attributes may be included in dependencies.1

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • 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.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

Footnotes

  1. https://nixos.org/manual/nixpkgs/stable/#contributing-guidelines

@dotlambda dotlambda force-pushed the python3Packages.dataset branch from 3856d18 to f1e74ff Compare January 6, 2026 21:55
@nixpkgs-ci nixpkgs-ci bot requested review from jugendhacker, linsui and xfnw January 6, 2026 22:01
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 6.topic: python Python is a high-level, general-purpose programming language. labels Jan 6, 2026
@dotlambda dotlambda force-pushed the python3Packages.dataset branch from 199d047 to 6ffe711 Compare January 6, 2026 22:20
@philiptaron
Copy link
Contributor

@wolfgangwalther, I thought you argued against this approach.

@wolfgangwalther
Copy link
Contributor

wolfgangwalther commented Jan 7, 2026

I thought you argued against this approach.

Right, that was in #404946 (comment), which was implemented in #444420. This technically only applies to by-name packages, not python-modules - but that was the case for the earlier guideline as well.

I'd say outside of by-name both is fine, but I don't think "because only unversioned attributes may be included in dependencies." is a sufficient reason / motivation for this kind of change - there is no such hard requirement.

Edit: The above was written purely from the by-name perspective. By looking at the original PR, I found the comment referring to the python manual at https://nixos.org/manual/nixpkgs/stable/#contributing-guidelines, which clearly states that this is not allowed for python. It would help to link such information in the PR body directly.

@dotlambda
Copy link
Member Author

The above was written purely from the by-name perspective.

Even in pkgs/by-name, overrideScope should be used instead of versioned Python packages.

@wolfgangwalther
Copy link
Contributor

The above was written purely from the by-name perspective.

Even in pkgs/by-name, overrideScope should be used instead of versioned Python packages.

I was not talking about python at all, but about the interface for by-name packages and whether they put stuff in all-packages.nix or not. This is independent of which language/ecosystem the package is built with.

Copy link
Contributor

@wolfgangwalther wolfgangwalther left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be clear: No objection from my side.

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Jan 7, 2026
@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 2 This PR was reviewed and approved by two persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels Jan 7, 2026
Copy link
Member

@xfnw xfnw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diff lgtm

@dotlambda dotlambda force-pushed the python3Packages.dataset branch from 3fca83e to 57dae99 Compare January 7, 2026 15:43
@nixpkgs-ci nixpkgs-ci bot removed the 12.approvals: 2 This PR was reviewed and approved by two persons. label Jan 7, 2026
@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 3+ This PR was reviewed and approved by three or more persons. label Jan 7, 2026
@nixpkgs-ci nixpkgs-ci bot requested review from fabaff, linsui and xfnw January 7, 2026 15:48
@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. and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jan 7, 2026
@dotlambda

This comment was marked as outdated.

@nixpkgs-ci nixpkgs-ci bot requested a review from pmiddend January 7, 2026 16:04
@dotlambda
Copy link
Member Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 477562
Commit: 99a1d8d30942fc679856035eff56bd2f78c6da22


x86_64-linux

✅ 5 packages built:
  • apkleaks
  • apkleaks.dist
  • jadx
  • quark-engine
  • quark-engine.dist

maintainers = with lib.maintainers; [ xfnw ];
# SQLAlchemy >= 2.0.0 is unsupported
# https://github.com/pudo/dataset/issues/411
broken = lib.versionAtLeast sqlalchemy.version "2.0.0";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I guess that's fair. That is a disheartening thread.

@philiptaron
Copy link
Contributor

The package removals listed are all due to marking dataset broken.

@linsui
Copy link
Contributor

linsui commented Jan 7, 2026

Is this something "wrong"? Nix thought these packages are also broken so won't build them? Or a bug or the CI?

@dotlambda
Copy link
Member Author

Is this something "wrong"? Nix thought these packages are also broken so won't build them? Or a bug or the CI?

That's how it's supposed to be.

@dotlambda dotlambda added this pull request to the merge queue Jan 7, 2026
Merged via the queue into NixOS:master with commit 3ebffba Jan 7, 2026
28 of 32 checks passed
@dotlambda dotlambda deleted the python3Packages.dataset branch January 7, 2026 22:23
@linsui
Copy link
Contributor

linsui commented Jan 8, 2026

Then why do you break androguard and fdroidserver intentionally? 😕 Shouldn't the CI check them?

@dotlambda
Copy link
Member Author

Then why do you break androguard and fdroidserver intentionally?

I didn't break them. They are simply not rebuilt by this PR.

@linsui
Copy link
Contributor

linsui commented Jan 8, 2026

Because there is no rebuild? Got it, thanks!

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: 3+ This PR was reviewed and approved by three or more persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants