2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pyside, pytest }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "QtPy";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "1.10.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "3d20f010caa3b2c04835d6a2f66f8873b041bdaf7a76085c2a0d7890cdd65ea9";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# no concrete propagatedBuildInputs as multiple backends are supposed
|
|
|
|
checkInputs = [ pyside pytest ];
|
|
|
|
|
|
|
|
doCheck = false; # require X
|
|
|
|
checkPhase = ''
|
|
|
|
py.test qtpy/tests
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Abstraction layer for PyQt5/PyQt4/PySide2/PySide";
|
|
|
|
homepage = "https://github.com/spyder-ide/qtpy";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|