Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 620 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, pyside, pytest }: 2 3buildPythonPackage rec { 4 pname = "QtPy"; 5 version = "1.9.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "13cw8l7zrhbdi03k1wl1pg9xdl4ahdfa7yz8gd0f23sxnm22rdrd"; 10 }; 11 12 # no concrete propagatedBuildInputs as multiple backends are supposed 13 checkInputs = [ pyside pytest ]; 14 15 doCheck = false; # require X 16 checkPhase = '' 17 py.test qtpy/tests 18 ''; 19 20 meta = with stdenv.lib; { 21 description = "Abstraction layer for PyQt5/PyQt4/PySide2/PySide"; 22 homepage = "https://github.com/spyder-ide/qtpy"; 23 license = licenses.mit; 24 }; 25}