mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 11:13:30 +00:00
python310Packages.pytest-qt: disable on older Python releases
- add pythonImportsCheck
This commit is contained in:
parent
ff3cb04f66
commit
b7f7d75c74
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user