My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/qtpy/default.nix

53 lines
976 B

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
# propagates
, packaging
# tests
, pyqt5
, pyside
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "QtPy";
version = "2.0.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "13zbhnl2rm30xafwrzfwdb4mjp7gk4s9h2xagbf83pnjzczhgzdd";
};
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;
};
}