Archived
1
0
Fork 0

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.
This commit is contained in:
Ricardo Wurmus 2023-07-07 10:10:27 +02:00
parent 11989e39d7
commit 8e83db0bce
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -2264,41 +2264,49 @@ building design matrices.")
(define-public python-statsmodels (define-public python-statsmodels
(package (package
(name "python-statsmodels") (name "python-statsmodels")
(version "0.13.1") (version "0.14.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "statsmodels" version)) (uri (pypi-uri "statsmodels" version))
(sha256 (sha256
(base32 "0sbsyxgpzhys5padhkhrj71z4i1q41sm938pz0x8ff6jjvcchvh0")) (base32 "1927ysv7m46m1x3wz05i0s3r5x0nasmidf2yy54djrp9i7bcfxb8"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
'(begin '(for-each delete-file (find-files "." "\\.c$")))))
(for-each delete-file (find-files "." "\\.c$")))))) (build-system pyproject-build-system)
(build-system python-build-system)
(arguments (arguments
`(;; The test suite is very large and rather brittle. Tests often fail (list
;; because of minor changes in dependencies that upstream hasn't fixed ;; The test suite is very large and rather brittle. Tests often fail
;; in a new release. ;; because of minor changes in dependencies that upstream hasn't fixed
#:tests? #f ;; in a new release.
#:phases #:tests? #f
(modify-phases %standard-phases #:phases
(add-after 'unpack 'set-matplotlib-backend-to-agg #~(modify-phases %standard-phases
(lambda _ (add-after 'unpack 'set-matplotlib-backend-to-agg
;; Set the matplotlib backend to Agg to avoid problems using the (lambda _
;; GTK backend without a display. ;; Set the matplotlib backend to Agg to avoid problems using the
(substitute* (append (find-files "statsmodels/graphics/tests" "\\.py") ;; GTK backend without a display.
'("statsmodels/tsa/vector_ar/tests/test_var.py" (substitute* (append (find-files "statsmodels/graphics/tests" "\\.py")
"statsmodels/duration/tests/test_survfunc.py")) '("statsmodels/tsa/vector_ar/tests/test_var.py"
(("import matplotlib\\.pyplot as plt" line) "statsmodels/duration/tests/test_survfunc.py"))
(string-append "import matplotlib;matplotlib.use('Agg');" (("import matplotlib\\.pyplot as plt" line)
line))) (string-append "import matplotlib;matplotlib.use('Agg');"
#t))))) line))))))))
(propagated-inputs (propagated-inputs
(list python-numpy python-scipy python-pandas python-patsy (list python-numpy python-packaging python-pandas python-patsy
python-matplotlib)) python-scipy))
(native-inputs (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/") (home-page "https://statsmodels.sourceforge.net/")
(synopsis "Statistical modeling and econometrics in Python") (synopsis "Statistical modeling and econometrics in Python")
(description (description