1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatch-vcs,
6 hatchling,
7 pint,
8 pygments,
9 pyqt5,
10 pyqt6,
11 pyside2,
12 pyside6,
13 pytestCheckHook,
14 pythonOlder,
15 qtpy,
16 typing-extensions,
17}:
18
19buildPythonPackage rec {
20 pname = "superqt";
21 version = "0.7.6";
22 pyproject = true;
23
24 disabled = pythonOlder "3.9";
25
26 src = fetchFromGitHub {
27 owner = "pyapp-kit";
28 repo = "superqt";
29 tag = "v${version}";
30 hash = "sha256-Hdi1aTMZeQqaqeK7B4yynTOBc6Cy1QcX5BHsr6g1xwM=";
31 };
32
33 build-system = [
34 hatch-vcs
35 hatchling
36 ];
37
38 dependencies = [
39 pygments
40 pyqt5
41 qtpy
42 typing-extensions
43 ];
44
45 optional-dependencies = {
46 quantity = [ pint ];
47 pyside2 = [ pyside2 ];
48 pyside6 = [ pyside6 ];
49 pyqt6 = [ pyqt6 ];
50 };
51
52 nativeCheckInputs = [ pytestCheckHook ];
53
54 # Segmentation fault
55 doCheck = false;
56
57 # Segmentation fault
58 # pythonImportsCheck = [ "superqt" ];
59
60 meta = with lib; {
61 description = "Missing widgets and components for Qt-python (napari/superqt)";
62 homepage = "https://github.com/napari/superqt";
63 changelog = "https://github.com/pyapp-kit/superqt/releases/tag/${src.tag}";
64 license = licenses.bsd3;
65 maintainers = with maintainers; [ SomeoneSerge ];
66 };
67}