[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/10: gnu: Add python-pyqtgraph.
From: |
guix-commits |
Subject: |
02/10: gnu: Add python-pyqtgraph. |
Date: |
Sun, 25 Apr 2021 14:53:10 -0400 (EDT) |
lfam pushed a commit to branch master
in repository guix.
commit 50847139f4e3adc30370997dfb280c93f512fcbd
Author: Vinicius Monego <monego@posteo.net>
AuthorDate: Sun Apr 25 03:26:00 2021 +0000
gnu: Add python-pyqtgraph.
* gnu/packages/python-xyz.scm (python-pyqtgraph): New variable.
Signed-off-by: Leo Famulari <leo@famulari.name>
---
gnu/packages/python-xyz.scm | 52 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2ebc512..df2d1e9 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12581,6 +12581,58 @@ ISO 8859, etc.).")
(description "AnyQt is a PyQt4/PyQt5 compatibility layer.")
(license license:gpl3)))
+(define-public python-pyqtgraph
+ (package
+ (name "python-pyqtgraph")
+ (version "0.12.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "pyqtgraph" version))
+ (sha256
+ (base32 "0kc7ncv0lr3spni29i9g8nszyr4xinswqi2zzs6v8kqqi593pvyj"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'set-home-and-qpa
+ (lambda _
+ (setenv "HOME" "/tmp")
+ (setenv "QT_QPA_PLATFORM" "offscreen")
+ #t))
+ (replace 'check
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (add-installed-pythonpath inputs outputs)
+ (invoke "pytest" "-vv" "-k"
+ ;; These tests try to download online data.
+ (string-append "not test_PolyLineROI"
+ " and not test_getArrayRegion_axisorder"
+ " and not test_getArrayRegion"
+ " and not test_PlotCurveItem"
+ " and not test_NonUniformImage_colormap"
+ " and not test_NonUniformImage_lut"
+ " and not test_ImageItem_axisorder"
+ " and not test_ImageItem")))))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)
+ ("python-pytest-cov" ,python-pytest-cov)
+ ("python-pytest-xdist" ,python-pytest-xdist)))
+ (inputs
+ `(("qtbase" ,qtbase)))
+ (propagated-inputs
+ `(("python-h5py" ,python-h5py)
+ ("python-numpy" ,python-numpy)
+ ("python-pyopengl" ,python-pyopengl)
+ ("python-scipy" ,python-scipy)
+ ("python-pyqt" ,python-pyqt)))
+ (home-page "http://www.pyqtgraph.org")
+ (synopsis "Scientific graphics and GUI library for Python")
+ (description
+ "PyQtGraph is a Pure-python graphics library for PyQt5, PyQt6, PySide2
+and PySide6. It is intended for use in mathematics, scientific or engineering
+applications.")
+ (license license:expat)))
+
(define-public python-editor
(package
(name "python-editor")
- branch master updated (862a886 -> 5461efe), guix-commits, 2021/04/25
- 01/10: gnu: Add python-anyqt., guix-commits, 2021/04/25
- 04/10: gnu: Add python-orange-canvas-core., guix-commits, 2021/04/25
- 05/10: gnu: Add python-orange-widget-base., guix-commits, 2021/04/25
- 06/10: gnu: Add python-serverfiles., guix-commits, 2021/04/25
- 03/10: gnu: Add python-qasync., guix-commits, 2021/04/25
- 02/10: gnu: Add python-pyqtgraph.,
guix-commits <=
- 07/10: gnu: Add python-louvain 0.15., guix-commits, 2021/04/25
- 08/10: gnu: python-pynndescent: Update to 0.5.2., guix-commits, 2021/04/25
- 09/10: gnu: python-opentsne: Update to 0.5.2., guix-commits, 2021/04/25
- 10/10: gnu: Add orange., guix-commits, 2021/04/25