-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
pythonPackages.pyqtgraph: use PyQt5 and enable tests #102100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Result of 3 packages marked as broken and skipped:
7 packages failed to build:
|
Result of 3 packages marked as broken and skipped:
7 packages failed to build:
cat logs/python38Packages.pyqtgraph.log
My suggested fix does not work. Not sure why. |
Test results on Linuxsys.platform: linux sys.version: 3.8.6 (default, Sep 23 2020, 13:54:27) [GCC 9.3.0] qt bindings: PyQt5 5.15.1 Qt 5.15.0 pyqtgraph: 0.11.0; None config: {'antialias': False, 'background': 'k', 'crashWarning': False, 'editorCommand': None, 'enableExperimental': False, 'exitCleanup': True, 'foreground': 'd', 'imageAxisOrder': 'col-major', 'leftButtonPan': True, 'useOpenGL': False, 'useWeave': False, 'weaveDebug': False} ============================= test session starts ============================== platform linux -- Python 3.8.6, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 -- /nix/store/346skv0d24rqnf4npknbp9h5bs14j8zy-python3-3.8.6/bin/python3.8 cachedir: .pytest_cache rootdir: /build/source, inifile: pytest.ini collecting ... QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/build/runtime-nixbld' collected 137 items / 7 deselected / 130 selected Which test is failing? --- a/pkgs/development/python-modules/pyqtgraph/default.nix
+++ b/pkgs/development/python-modules/pyqtgraph/default.nix
@@ -39,7 +39,7 @@ in buildPythonPackage rec {
export FONTCONFIG_FILE=${fontsConf}
# disable 6 tests which try to clone https://github.com/pyqtgraph/test-data
- ${python.interpreter} test.py --pyqt5 \
+ ${python.interpreter} test.py --pyqt5 -s -v \
-k "not test_ImageItem and not test_ImageItem_axisorder \
and not test_PlotCurveItem and not test_getArrayRegion \
and not test_getArrayRegion_axisorder and not test_PolyLineROI" |
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
9f815ff
to
dd56df4
Compare
Does QT even work on Darwin?
|
propagatedBuildInputs = [ scipy numpy pyqt4 pyopengl ]; | ||
propagatedBuildInputs = [ numpy pyqt5 scipy pyopengl h5py ]; | ||
|
||
checkInputs = [ pytest ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use pytestCheckHook.
Can you solve the merge conflict? |
Superseded by #130560 |
Motivation for this change
Use
fetchFromGitHub
because the tests aren't included in the PyPi package.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)