diff --git a/pkgs/development/python-modules/pytest-qt/default.nix b/pkgs/development/python-modules/pytest-qt/default.nix index 653bc0234fa2..f1d8707a3a19 100644 --- a/pkgs/development/python-modules/pytest-qt/default.nix +++ b/pkgs/development/python-modules/pytest-qt/default.nix @@ -4,15 +4,19 @@ , setuptools-scm , pytest , pyqt5 +, pythonOlder }: buildPythonPackage rec { pname = "pytest-qt"; version = "4.2.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-AKF7WG3VMLbXqTmZI6QEicpKmjCXGQERdfVdxrXcj0E="; + hash = "sha256-AKF7WG3VMLbXqTmZI6QEicpKmjCXGQERdfVdxrXcj0E="; }; nativeBuildInputs = [ @@ -27,7 +31,11 @@ buildPythonPackage rec { pyqt5 ]; - # tests require X server + pythonImportsCheck = [ + "pytestqt" + ]; + + # Tests require X server doCheck = false; meta = with lib; {