2022-01-18 14:58:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
|
|
|
|
# propagates
|
|
|
|
, packaging
|
|
|
|
|
|
|
|
# tests
|
|
|
|
, pyqt5
|
|
|
|
, pyside
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2017-11-15 15:18:39 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "QtPy";
|
2022-12-30 19:13:43 +00:00
|
|
|
version = "2.3.0";
|
2022-01-18 14:58:52 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2017-11-15 15:18:39 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-BgPJyDzMA1pHF6EpCL9rxssiUJgn6i7A6Uwtp8ntV8U=";
|
2017-11-15 15:18:39 +00:00
|
|
|
};
|
|
|
|
|
2022-01-18 14:58:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
packaging
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = false; # ModuleNotFoundError: No module named 'PyQt5.QtConnectivity'
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-01-18 14:58:52 +00:00
|
|
|
pyside
|
|
|
|
(pyqt5.override {
|
|
|
|
withConnectivity = true;
|
|
|
|
withMultimedia = true;
|
|
|
|
withWebKit = true;
|
|
|
|
withWebSockets = true;
|
|
|
|
})
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2017-11-15 15:18:39 +00:00
|
|
|
|
2022-01-18 14:58:52 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Fatal error in python on x86_64
|
|
|
|
"qtpy/tests/test_uic.py"
|
|
|
|
];
|
2017-11-15 15:18:39 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-03-21 18:23:15 +00:00
|
|
|
description = "Abstraction layer for PyQt5/PyQt6/PySide2/PySide6";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/spyder-ide/qtpy";
|
2017-11-15 15:18:39 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|