1{ lib, buildPythonPackage, fetchPypi, pyside, pytest }:
2
3buildPythonPackage rec {
4 pname = "QtPy";
5 version = "1.11.2";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "d6e4ae3a41f1fcb19762b58f35ad6dd443b4bdc867a4cb81ef10ccd85403c92b";
10 };
11
12 # no concrete propagatedBuildInputs as multiple backends are supposed
13 checkInputs = [ pyside pytest ];
14
15 doCheck = false; # require X
16 checkPhase = ''
17 py.test qtpy/tests
18 '';
19
20 meta = with lib; {
21 description = "Abstraction layer for PyQt5/PyQt4/PySide2/PySide";
22 homepage = "https://github.com/spyder-ide/qtpy";
23 license = licenses.mit;
24 };
25}