forked from mirrors/nixpkgs
26 lines
630 B
Nix
26 lines
630 B
Nix
{ stdenv, buildPythonPackage, fetchPypi, pyside, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "QtPy";
|
|
version = "1.4.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1d1a4343540433a203280f162d43226e4c87489155fe4a9a6f1923ba11362bf9";
|
|
};
|
|
|
|
# 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;
|
|
};
|
|
}
|