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";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "2.2.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;
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sha256-2F8bEh8kpBrSbFXERuZqvbfFKIOfjE8R8VbsRUGQORQ=";
|
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'
|
|
|
|
checkInputs = [
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|