2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
|
|
|
|
# propagates
|
|
|
|
packaging,
|
|
|
|
|
|
|
|
# tests
|
|
|
|
pyqt5,
|
|
|
|
pyside2,
|
|
|
|
pytestCheckHook,
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-04-21 15:54:59 +00:00
|
|
|
pname = "qtpy";
|
|
|
|
version = "2.4.1";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-04-21 15:54:59 +00:00
|
|
|
pname = "QtPy";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-paFf/VGVUKE2G9xW/8B/2lamr3KS8Xx7OV1Ag69jKYc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ packaging ];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
doCheck = false; # ModuleNotFoundError: No module named 'PyQt5.QtConnectivity'
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-08-22 20:05:09 +00:00
|
|
|
pyside2
|
2022-02-10 20:34:41 +00:00
|
|
|
(pyqt5.override {
|
|
|
|
withConnectivity = true;
|
|
|
|
withMultimedia = true;
|
|
|
|
withWebKit = true;
|
|
|
|
withWebSockets = true;
|
|
|
|
})
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Fatal error in python on x86_64
|
|
|
|
"qtpy/tests/test_uic.py"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-03-30 09:31:56 +00:00
|
|
|
description = "Abstraction layer for PyQt5/PyQt6/PySide2/PySide6";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "qtpy";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/spyder-ide/qtpy";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|