depot/third_party/nixpkgs/pkgs/development/python-modules/qtpy/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

53 lines
975 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
# propagates
, packaging
# tests
, pyqt5
, pyside
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "QtPy";
version = "2.2.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-2F8bEh8kpBrSbFXERuZqvbfFKIOfjE8R8VbsRUGQORQ=";
};
propagatedBuildInputs = [
packaging
];
doCheck = false; # ModuleNotFoundError: No module named 'PyQt5.QtConnectivity'
checkInputs = [
pyside
(pyqt5.override {
withConnectivity = true;
withMultimedia = true;
withWebKit = true;
withWebSockets = true;
})
pytestCheckHook
];
disabledTestPaths = [
# Fatal error in python on x86_64
"qtpy/tests/test_uic.py"
];
meta = with lib; {
description = "Abstraction layer for PyQt5/PyQt6/PySide2/PySide6";
homepage = "https://github.com/spyder-ide/qtpy";
license = licenses.mit;
};
}