1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools-scm
5, pytest
6, pyqt5
7}:
8
9buildPythonPackage rec {
10 pname = "pytest-qt";
11 version = "4.0.2";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "dfc5240dec7eb43b76bcb5f9a87eecae6ef83592af49f3af5f1d5d093acaa93e";
16 };
17
18 nativeBuildInputs = [
19 setuptools-scm
20 ];
21
22 buildInputs = [
23 pytest
24 ];
25
26 checkInputs = [
27 pyqt5
28 ];
29
30 # tests require X server
31 doCheck = false;
32
33 meta = with lib; {
34 description = "pytest support for PyQt and PySide applications";
35 homepage = "https://github.com/pytest-dev/pytest-qt";
36 license = licenses.mit;
37 maintainers = with maintainers; [ costrouc ];
38 };
39}