2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
|
|
|
|
# propagates
|
|
|
|
, packaging
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, pyqt5
|
|
|
|
, pyside
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "QtPy";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "2.3.0";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-BgPJyDzMA1pHF6EpCL9rxssiUJgn6i7A6Uwtp8ntV8U=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
packaging
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # ModuleNotFoundError: No module named 'PyQt5.QtConnectivity'
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
pyside
|
|
|
|
(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";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/spyder-ide/qtpy";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|