2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pyqt5,
|
|
|
|
pytestCheckHook,
|
|
|
|
nix-update-script,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "anyqt";
|
|
|
|
version = "0.2.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ales-erjavec";
|
|
|
|
repo = "anyqt";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-dL2EUAMzWKq/oN3rXiEC6emDJddmg4KclT5ONKA0jfk=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pyqt5
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
# All of these fail because Qt modules cannot be imported
|
|
|
|
disabledTestPaths = [
|
|
|
|
"tests/test_qabstractitemview.py"
|
|
|
|
"tests/test_qaction_set_menu.py"
|
|
|
|
"tests/test_qactionevent_action.py"
|
|
|
|
"tests/test_qfontdatabase_static.py"
|
|
|
|
"tests/test_qpainter_draw_pixmap_fragments.py"
|
|
|
|
"tests/test_qsettings.py"
|
|
|
|
"tests/test_qstandarditem_insertrow.py"
|
|
|
|
"tests/test_qtest.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "AnyQt" ];
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "PyQt/PySide compatibility layer";
|
|
|
|
homepage = "https://github.com/ales-erjavec/anyqt";
|
|
|
|
license = [ lib.licenses.gpl3Only ];
|
|
|
|
maintainers = [ lib.maintainers.lucasew ];
|
|
|
|
};
|
|
|
|
}
|