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