mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
python3Packages.qtpy: fix build
Needed to propagate packaging and took some time to look at the tests. The tests need pyqt5 with certain features, but pyqt5 takes roughly an hour to build so after two tries I wasn't going to spend more time and decided to keep the test disabled with updated hints.
This commit is contained in:
parent
c1316381f1
commit
861e3c703b
@ -1,21 +1,49 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, pyside, pytest }:
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pythonOlder
|
||||||
|
|
||||||
|
# propagates
|
||||||
|
, packaging
|
||||||
|
|
||||||
|
# tests
|
||||||
|
, pyqt5
|
||||||
|
, pyside
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "QtPy";
|
pname = "QtPy";
|
||||||
version = "2.0.0";
|
version = "2.0.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "777e333df4d711b2ec9743117ab319dadfbd743a5a0eee35923855ca3d35cd9d";
|
sha256 = "777e333df4d711b2ec9743117ab319dadfbd743a5a0eee35923855ca3d35cd9d";
|
||||||
};
|
};
|
||||||
|
|
||||||
# no concrete propagatedBuildInputs as multiple backends are supposed
|
propagatedBuildInputs = [
|
||||||
checkInputs = [ pyside pytest ];
|
packaging
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = false; # require X
|
doCheck = false; # ModuleNotFoundError: No module named 'PyQt5.QtConnectivity'
|
||||||
checkPhase = ''
|
checkInputs = [
|
||||||
py.test qtpy/tests
|
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; {
|
meta = with lib; {
|
||||||
description = "Abstraction layer for PyQt5/PyQt4/PySide2/PySide";
|
description = "Abstraction layer for PyQt5/PyQt4/PySide2/PySide";
|
||||||
|
Loading…
Reference in New Issue
Block a user