10 pyqtdatavisualization,
14 buildPythonPackage rec {
15 pname = "pyqt5-stubs";
17 format = "setuptools";
18 disabled = pythonOlder "3.7";
20 src = fetchFromGitHub {
21 owner = "python-qt-tools";
24 hash = "sha256-qWnvlHnFRy8wbZJ28C0pYqAxod623Epe5z5FZufheDc=";
28 # pulls in a dependency to mypy, but we don't want to run linters
29 rm tests/test_stubs.py
31 + lib.optionalString (!pyqt5.connectivityEnabled) ''
32 rm tests/qflags/test_QtBluetooth_*
33 rm tests/qflags/test_QtNfc_*
35 + lib.optionalString (!pyqt5.locationEnabled) ''
36 rm tests/qflags/test_QtLocation_*
37 rm tests/qflags/test_QtPositioning_*
39 + lib.optionalString (!pyqt5.multimediaEnabled) ''
40 rm tests/qflags/test_QtMultimedia_*
42 + lib.optionalString (!pyqt5.serialPortEnabled) ''
43 rm tests/qflags/test_QtSerialPort_*
45 + lib.optionalString (!pyqt5.toolsEnabled) ''
46 rm tests/qflags/test_QtDesigner_*
49 pythonImportsCheck = [ "PyQt5-stubs" ];
61 description = "Stubs for PyQt5";
62 homepage = "https://github.com/python-qt-tools/PyQt5-stubs";
63 license = licenses.gpl3;
64 maintainers = with maintainers; [ _999eagle ];