1{ 2 lib, 3 buildPythonPackage, 4 pythonAtLeast, 5 fetchPypi, 6 pyqt5, 7 twisted, 8 pytest-twisted, 9 pytestCheckHook, 10}: 11 12buildPythonPackage rec { 13 pname = "qt5reactor"; 14 version = "0.6.3"; 15 format = "setuptools"; 16 17 # AttributeError: module 'configparser' has no attribute 'SafeConfigParser' 18 disabled = pythonAtLeast "3.12"; 19 20 src = fetchPypi { 21 inherit pname version; 22 sha256 = "c3470a8a25d9a339f9ca6243502a9b2277f181d772b7acbff551d5bc363b7572"; 23 }; 24 25 propagatedBuildInputs = [ 26 pyqt5 27 twisted 28 ]; 29 30 nativeCheckInputs = [ 31 pytest-twisted 32 pytestCheckHook 33 ]; 34 35 pythonImportsCheck = [ "qt5reactor" ]; 36 37 meta = with lib; { 38 description = "Twisted Qt Integration"; 39 homepage = "https://github.com/twisted/qt5reactor"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ dotlambda ]; 42 }; 43}