3
0
Fork 0
forked from mirrors/nixpkgs

python310Packages.pytest-qt: disable on older Python releases

- add pythonImportsCheck
This commit is contained in:
Fabian Affolter 2022-10-26 09:07:20 +02:00 committed by GitHub
parent ff3cb04f66
commit b7f7d75c74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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; {