1{ stdenv, buildPythonPackage, fetchPypi, pyside, pytest }:
2
3buildPythonPackage rec {
4 pname = "QtPy";
5 version = "1.3.1";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "04skhjb2dbbhvpq0x71nnz2h68805fkxfpkdjhwvd7lzsljjbbq8";
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 stdenv.lib; {
21 description = "Abstraction layer for PyQt5/PyQt4/PySide2/PySide";
22 homepage = https://github.com/spyder-ide/qtpy;
23 license = licenses.mit;
24 };
25}