2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pyside, pytest }:
|
2017-11-15 15:18:39 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "QtPy";
|
2019-08-05 22:31:15 +01:00
|
|
|
version = "1.9.0";
|
2017-11-15 15:18:39 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-08-05 22:31:15 +01:00
|
|
|
sha256 = "13cw8l7zrhbdi03k1wl1pg9xdl4ahdfa7yz8gd0f23sxnm22rdrd";
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-11-15 15:18:39 +00:00
|
|
|
description = "Abstraction layer for PyQt5/PyQt4/PySide2/PySide";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/spyder-ide/qtpy";
|
2017-11-15 15:18:39 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|