aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2023-07-07 10:10:27 +0200
committerRicardo Wurmus <rekado@elephly.net>2023-07-07 10:13:57 +0200
commit8e83db0bce72547930b28fe15c294854ecd6271a (patch)
tree0d0717b928b6d0472409167ac6b4809bc8ddd7b1 /gnu
parent11989e39d7038660f89327f20f04681412a6474b (diff)
downloadguix-8e83db0bce72547930b28fe15c294854ecd6271a.tar.gz
guix-8e83db0bce72547930b28fe15c294854ecd6271a.zip
gnu: python-statsmodels: Update to 0.14.0.
* gnu/packages/statistics.scm (python-statsmodels): Update to 0.14.0. [source]: Simplify snippet. [build-system]: Use pyproject-build-system. [arguments]: Remove trailing #T from build phase. [propagated-inputs]: Add python-packaging; remove python-matplotlib. [native-inputs]: Add python-colorama, python-flake8, python-isort, python-joblib, python-matplotlib, python-pytest, python-pytest-randomly, python-pytest-xdist, and python-setuptools-scm; remove python-nose and python-sphinx.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/statistics.scm58
1 files changed, 33 insertions, 25 deletions
diff --git a/gnu/packages/statistics.scm b/gnu/packages/statistics.scm
index 8eed0767e0..774bd65952 100644
--- a/gnu/packages/statistics.scm
+++ b/gnu/packages/statistics.scm
@@ -2264,41 +2264,49 @@ building design matrices.")
(define-public python-statsmodels
(package
(name "python-statsmodels")
- (version "0.13.1")
+ (version "0.14.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "statsmodels" version))
(sha256
- (base32 "0sbsyxgpzhys5padhkhrj71z4i1q41sm938pz0x8ff6jjvcchvh0"))
+ (base32 "1927ysv7m46m1x3wz05i0s3r5x0nasmidf2yy54djrp9i7bcfxb8"))
(modules '((guix build utils)))
(snippet
- '(begin
- (for-each delete-file (find-files "." "\\.c$"))))))
- (build-system python-build-system)
+ '(for-each delete-file (find-files "." "\\.c$")))))
+ (build-system pyproject-build-system)
(arguments
- `(;; The test suite is very large and rather brittle. Tests often fail
- ;; because of minor changes in dependencies that upstream hasn't fixed
- ;; in a new release.
- #:tests? #f
- #:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'set-matplotlib-backend-to-agg
- (lambda _
- ;; Set the matplotlib backend to Agg to avoid problems using the
- ;; GTK backend without a display.
- (substitute* (append (find-files "statsmodels/graphics/tests" "\\.py")
- '("statsmodels/tsa/vector_ar/tests/test_var.py"
- "statsmodels/duration/tests/test_survfunc.py"))
- (("import matplotlib\\.pyplot as plt" line)
- (string-append "import matplotlib;matplotlib.use('Agg');"
- line)))
- #t)))))
+ (list
+ ;; The test suite is very large and rather brittle. Tests often fail
+ ;; because of minor changes in dependencies that upstream hasn't fixed
+ ;; in a new release.
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'set-matplotlib-backend-to-agg
+ (lambda _
+ ;; Set the matplotlib backend to Agg to avoid problems using the
+ ;; GTK backend without a display.
+ (substitute* (append (find-files "statsmodels/graphics/tests" "\\.py")
+ '("statsmodels/tsa/vector_ar/tests/test_var.py"
+ "statsmodels/duration/tests/test_survfunc.py"))
+ (("import matplotlib\\.pyplot as plt" line)
+ (string-append "import matplotlib;matplotlib.use('Agg');"
+ line))))))))
(propagated-inputs
- (list python-numpy python-scipy python-pandas python-patsy
- python-matplotlib))
+ (list python-numpy python-packaging python-pandas python-patsy
+ python-scipy))
(native-inputs
- (list python-cython python-nose python-sphinx))
+ (list python-colorama
+ python-cython
+ python-flake8
+ python-isort
+ python-joblib
+ python-matplotlib
+ python-pytest
+ python-pytest-randomly
+ python-pytest-xdist
+ python-setuptools-scm))
(home-page "https://statsmodels.sourceforge.net/")
(synopsis "Statistical modeling and econometrics in Python")
(description