Skip to content

Python packages depending on qt5, use qt514 while all-packages.nix defaults to qt515, causing incompatibilities. #99937

@doronbehar

Description

@doronbehar

Describe the bug

Experienced here: #99465 (comment) and here: #99685 (comment)

How come pyqt5 winds up with qt-5.14 in it's inputs and in it's references? Considering:

qt5 = if stdenv.hostPlatform.isDarwin then qt512 else qt515;
libsForQt5 = if stdenv.hostPlatform.isDarwin then libsForQt512 else libsForQt515;

And:

pyqt5 = pkgs.libsForQt5.callPackage ../development/python-modules/pyqt/5.x.nix { pythonPackages = self; };
pyqt5_with_qtmultimedia = self.pyqt5.override { withMultimedia = true; };

To Reproduce

nix-store --query --references $(nix-build --no-out-link -A python3.pkgs.pyqt5) | grep 5.14

Expected behavior

No qt5.14 references.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Notify maintainers

cc @sander

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: python.pkgs.pyqt5
# a list of nixos modules affected by the problem
module:

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: pythonPython is a high-level, general-purpose programming language.6.topic: qt/kdeObject-oriented framework for GUI creation
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions