depot/third_party/nixpkgs/pkgs/development/python-modules/qtpy/default.nix
Default email 88abffb7d2 Project import generated by Copybara.
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
2021-09-18 12:52:07 +02:00

25 lines
623 B
Nix

{ lib, buildPythonPackage, fetchPypi, pyside, pytest }:
buildPythonPackage rec {
pname = "QtPy";
version = "1.10.0";
src = fetchPypi {
inherit pname version;
sha256 = "3d20f010caa3b2c04835d6a2f66f8873b041bdaf7a76085c2a0d7890cdd65ea9";
};
# no concrete propagatedBuildInputs as multiple backends are supposed
checkInputs = [ pyside pytest ];
doCheck = false; # require X
checkPhase = ''
py.test qtpy/tests
'';
meta = with lib; {
description = "Abstraction layer for PyQt5/PyQt4/PySide2/PySide";
homepage = "https://github.com/spyder-ide/qtpy";
license = licenses.mit;
};
}