-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qgis: fix sip and pyqt5-sip compatibility
- Loading branch information
Showing
3 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# FIX sip and pyqt5_sip compatibility. See: https://github.com/NixOS/nixpkgs/issues/273561 | ||
# Remove this fix in NixOS 24.05. | ||
|
||
{ lib | ||
, buildPythonPackage | ||
, fetchPypi | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "pyqt5-sip"; | ||
version = "12.12.1"; | ||
|
||
src = fetchPypi { | ||
pname = "PyQt5_sip"; | ||
inherit version; | ||
hash = "sha256-j9xuAUir0S2Xeh04KOe3mq6VjoPGy1ra5hSRbYiKaxA="; | ||
}; | ||
|
||
# There is no test code and the check phase fails with: | ||
# > error: could not create 'PyQt5/sip.cpython-38-x86_64-linux-gnu.so': No such file or directory | ||
doCheck = false; | ||
pythonImportsCheck = ["PyQt5.sip"]; | ||
|
||
meta = with lib; { | ||
description = "Python bindings for Qt5"; | ||
homepage = "https://www.riverbankcomputing.com/software/sip/"; | ||
license = licenses.gpl3Only; | ||
platforms = platforms.mesaPlatforms; | ||
maintainers = with maintainers; [ sander ]; | ||
}; | ||
} |
This file contains 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
This file contains 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