9 , pyqtdatavisualization
13 buildPythonPackage rec {
14 pname = "pyqt5-stubs";
16 format = "setuptools";
17 disabled = pythonOlder "3.7";
19 src = fetchFromGitHub {
20 owner = "python-qt-tools";
23 hash = "sha256-qWnvlHnFRy8wbZJ28C0pYqAxod623Epe5z5FZufheDc=";
26 # pulls in a dependency to mypy, but we don't want to run linters
27 rm tests/test_stubs.py
28 '' + lib.optionalString (!pyqt5.connectivityEnabled) ''
29 rm tests/qflags/test_QtBluetooth_*
30 rm tests/qflags/test_QtNfc_*
31 '' + lib.optionalString (!pyqt5.locationEnabled) ''
32 rm tests/qflags/test_QtLocation_*
33 rm tests/qflags/test_QtPositioning_*
34 '' + lib.optionalString (!pyqt5.multimediaEnabled) ''
35 rm tests/qflags/test_QtMultimedia_*
36 '' + lib.optionalString (!pyqt5.serialPortEnabled) ''
37 rm tests/qflags/test_QtSerialPort_*
38 '' + lib.optionalString (!pyqt5.toolsEnabled) ''
39 rm tests/qflags/test_QtDesigner_*
42 pythonImportsCheck = [
56 description = "Stubs for PyQt5 ";
57 homepage = "https://github.com/python-qt-tools/PyQt5-stubs";
58 license = licenses.gpl3;
59 maintainers = with maintainers; [ _999eagle ];