pyqt5-stubs: drop
This commit is contained in:
@@ -1,63 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pytestCheckHook,
|
||||
pyqt5,
|
||||
pyqt3d,
|
||||
pyqtchart,
|
||||
pyqtdatavisualization,
|
||||
pyqtwebengine,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyqt5-stubs";
|
||||
version = "5.15.6.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "python-qt-tools";
|
||||
repo = "PyQt5-stubs";
|
||||
rev = version;
|
||||
hash = "sha256-qWnvlHnFRy8wbZJ28C0pYqAxod623Epe5z5FZufheDc=";
|
||||
};
|
||||
postPatch = ''
|
||||
# pulls in a dependency to mypy, but we don't want to run linters
|
||||
rm tests/test_stubs.py
|
||||
''
|
||||
+ lib.optionalString (!pyqt5.connectivityEnabled) ''
|
||||
rm tests/qflags/test_QtBluetooth_*
|
||||
rm tests/qflags/test_QtNfc_*
|
||||
''
|
||||
+ lib.optionalString (!pyqt5.locationEnabled) ''
|
||||
rm tests/qflags/test_QtLocation_*
|
||||
rm tests/qflags/test_QtPositioning_*
|
||||
''
|
||||
+ lib.optionalString (!pyqt5.multimediaEnabled) ''
|
||||
rm tests/qflags/test_QtMultimedia_*
|
||||
''
|
||||
+ lib.optionalString (!pyqt5.serialPortEnabled) ''
|
||||
rm tests/qflags/test_QtSerialPort_*
|
||||
''
|
||||
+ lib.optionalString (!pyqt5.toolsEnabled) ''
|
||||
rm tests/qflags/test_QtDesigner_*
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "PyQt5-stubs" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pyqt5
|
||||
pyqt3d
|
||||
pyqtchart
|
||||
pyqtdatavisualization
|
||||
pyqtwebengine
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Stubs for PyQt5";
|
||||
homepage = "https://github.com/python-qt-tools/PyQt5-stubs";
|
||||
license = lib.licenses.gpl3;
|
||||
maintainers = with lib.maintainers; [ _999eagle ];
|
||||
};
|
||||
}
|
||||
@@ -428,6 +428,7 @@ mapAliases {
|
||||
pyownet = throw "pyownet was removed because Home Assistant switched to aio-ownet"; # added 2025-10-31
|
||||
pypcap = throw "pypcap has been removed because it is broken and unmaintained upstream."; # added 2025-06-18
|
||||
pyqldb = throw "pyqldb has been removed, because the underlying service is reaching end of support"; # added 2025-07-30
|
||||
pyqt5-stubs = throw "'pyqt5-stubs' has been removed as it was unused and depended on vulnerable qt5 webengine"; # Added 2026-01-15
|
||||
pyqt5_sip = throw "'pyqt5_sip' has been renamed to/replaced by 'pyqt5-sip'"; # Converted to throw 2025-10-29
|
||||
pyqt5_with_qtmultimedia = throw "'pyqt5_with_qtmultimedia' has been renamed to/replaced by 'pyqt5-multimedia'"; # Converted to throw 2025-10-29
|
||||
pyqt5_with_qtwebkit = throw "'pyqt5_with_qtwebkit' has been renamed to/replaced by 'pyqt5-webkit'"; # Converted to throw 2025-10-29
|
||||
|
||||
@@ -14734,8 +14734,6 @@ self: super: with self; {
|
||||
inherit (pkgs) mesa;
|
||||
};
|
||||
|
||||
pyqt5-stubs = callPackage ../development/python-modules/pyqt5-stubs { };
|
||||
|
||||
# `pyqt5-webkit` should not be used by python libraries in
|
||||
# pkgs/development/python-modules/*. Putting this attribute in
|
||||
# `propagatedBuildInputs` may cause collisions.
|
||||
|
||||
Reference in New Issue
Block a user