1{ lib 2, buildPythonPackage 3, fetchPypi 4, setuptools-scm 5, pytest 6, pyqt5 7, pythonOlder 8}: 9 10buildPythonPackage rec { 11 pname = "pytest-qt"; 12 version = "4.2.0"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-AKF7WG3VMLbXqTmZI6QEicpKmjCXGQERdfVdxrXcj0E="; 20 }; 21 22 nativeBuildInputs = [ 23 setuptools-scm 24 ]; 25 26 buildInputs = [ 27 pytest 28 ]; 29 30 nativeCheckInputs = [ 31 pyqt5 32 ]; 33 34 pythonImportsCheck = [ 35 "pytestqt" 36 ]; 37 38 # Tests require X server 39 doCheck = false; 40 41 meta = with lib; { 42 description = "pytest support for PyQt and PySide applications"; 43 homepage = "https://github.com/pytest-dev/pytest-qt"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ ]; 46 }; 47}