2017-11-15 15:18:39 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pyside, pytest }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "QtPy";
|
2018-10-24 06:14:16 +01:00
|
|
|
version = "1.5.2";
|
2017-11-15 15:18:39 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-10-24 06:14:16 +01:00
|
|
|
sha256 = "1kdbr8kwryjskhs6mp11jj02h4jdxvlzbzdn1chw30kcb280ysac";
|
2017-11-15 15:18:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# no concrete propagatedBuildInputs as multiple backends are supposed
|
|
|
|
checkInputs = [ pyside pytest ];
|
|
|
|
|
|
|
|
doCheck = false; # require X
|
|
|
|
checkPhase = ''
|
|
|
|
py.test qtpy/tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Abstraction layer for PyQt5/PyQt4/PySide2/PySide";
|
|
|
|
homepage = https://github.com/spyder-ide/qtpy;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|