1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pyqt5
5, pytestCheckHook
6, nix-update-script
7}:
8
9buildPythonPackage rec {
10 pname = "anyqt";
11 version = "0.2.0";
12
13 src = fetchFromGitHub {
14 owner = "ales-erjavec";
15 repo = "anyqt";
16 rev = version;
17 hash = "sha256-dL2EUAMzWKq/oN3rXiEC6emDJddmg4KclT5ONKA0jfk=";
18 };
19
20 nativeCheckInputs = [ pyqt5 pytestCheckHook ];
21
22 # All of these fail because Qt modules cannot be imported
23 disabledTestPaths = [
24 "tests/test_qabstractitemview.py"
25 "tests/test_qaction_set_menu.py"
26 "tests/test_qactionevent_action.py"
27 "tests/test_qfontdatabase_static.py"
28 "tests/test_qpainter_draw_pixmap_fragments.py"
29 "tests/test_qsettings.py"
30 "tests/test_qstandarditem_insertrow.py"
31 "tests/test_qtest.py"
32 ];
33
34 pythonImportsCheck = [ "AnyQt" ];
35
36 passthru.updateScript = nix-update-script { };
37
38 meta = {
39 description = "PyQt/PySide compatibility layer";
40 homepage = "https://github.com/ales-erjavec/anyqt";
41 license = [ lib.licenses.gpl3Only ];
42 maintainers = [ lib.maintainers.lucasew ];
43 };
44}