1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-21 08:59:20 +03:00
nixpkgs/pkgs/development/python-modules/qtpy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

54 lines
987 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
# propagates
, packaging
# tests
, pyqt5
, pyside
, pytestCheckHook
}:
2017-11-15 15:18:39 +00:00
buildPythonPackage rec {
pname = "QtPy";
2022-01-13 16:58:54 -08:00
version = "2.0.0";
format = "setuptools";
disabled = pythonOlder "3.6";
2017-11-15 15:18:39 +00:00
src = fetchPypi {
inherit pname version;
2022-01-13 16:58:54 -08:00
sha256 = "777e333df4d711b2ec9743117ab319dadfbd743a5a0eee35923855ca3d35cd9d";
2017-11-15 15:18:39 +00:00
};
propagatedBuildInputs = [
packaging
];
doCheck = false; # ModuleNotFoundError: No module named 'PyQt5.QtConnectivity'
checkInputs = [
pyside
(pyqt5.override {
withConnectivity = true;
withMultimedia = true;
withWebKit = true;
withWebSockets = true;
})
pytestCheckHook
];
2017-11-15 15:18:39 +00:00
disabledTestPaths = [
# Fatal error in python on x86_64
"qtpy/tests/test_uic.py"
];
2017-11-15 15:18:39 +00:00
meta = with lib; {
2017-11-15 15:18:39 +00:00
description = "Abstraction layer for PyQt5/PyQt4/PySide2/PySide";
homepage = "https://github.com/spyder-ide/qtpy";
2017-11-15 15:18:39 +00:00
license = licenses.mit;
};
}