mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-pingouin: Update to 0.5.5.
* gnu/packages/python-science.scm (python-pingouin): Update to 0.5.5. [arguments]<#:test-flags>: Enable previously failing test. Skip two more failing tests. <#:phases>: Delete unnecessary phases 'loosen-requirements', 'remove-outdated-check', 'sklearn-compatibility'. Change-Id: Iac44747d65c9be52831ae792a24b9cc5604c54dc
This commit is contained in:
parent
d32e619d47
commit
e660638d0d
1 changed files with 8 additions and 31 deletions
|
@ -3357,48 +3357,25 @@ of Pandas
|
||||||
(define-public python-pingouin
|
(define-public python-pingouin
|
||||||
(package
|
(package
|
||||||
(name "python-pingouin")
|
(name "python-pingouin")
|
||||||
(version "0.5.4")
|
(version "0.5.5")
|
||||||
(source
|
(source
|
||||||
;; The PyPI tarball does not contain the tests.
|
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch) ; no tests in PyPI tarball
|
||||||
(uri (git-reference
|
(uri (git-reference
|
||||||
(url "https://github.com/raphaelvallat/pingouin")
|
(url "https://github.com/raphaelvallat/pingouin")
|
||||||
(commit (string-append "v" version))))
|
(commit (string-append "v" version))))
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1j3qkgvyc31604ddl952h4hwza7schg8kwkycmxvpvx7xjj7nn68"))))
|
"0i3yzdlj08di3mzi69ci57jm5myl123hp8c5vn1g35k77m4zpgvd"))))
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:test-flags
|
;; _flapack.error: (liwork>=max(1,10*n)||liwork==-1)
|
||||||
;; This one fails due to minor differences in accuracy
|
;; failed for 10th keyword liwork: dsyevr:liwork=1
|
||||||
'(list "-k" "not test_logistic_regression")
|
#:test-flags #~(list "-k" (string-append
|
||||||
#:phases
|
"not test_box_m"
|
||||||
'(modify-phases %standard-phases
|
" and not test_linear_regression"))))
|
||||||
(add-after 'unpack 'loosen-requirements
|
|
||||||
(lambda _
|
|
||||||
(substitute* '("requirements.txt" "setup.py")
|
|
||||||
;; Remove sklearn pinning since it works fine with 1.1.2:
|
|
||||||
;; https://github.com/raphaelvallat/pingouin/pull/300
|
|
||||||
(("scikit-learn<1\\.1\\.0")
|
|
||||||
"scikit-learn"))))
|
|
||||||
;; On loading, Pingouin uses the outdated package to check if a newer
|
|
||||||
;; version is available on PyPI. This check adds an extra dependency
|
|
||||||
;; and is irrelevant to Guix users. So, disable it.
|
|
||||||
(add-after 'unpack 'remove-outdated-check
|
|
||||||
(lambda _
|
|
||||||
(substitute* "setup.py"
|
|
||||||
(("\"outdated\",") ""))
|
|
||||||
(substitute* "pingouin/__init__.py"
|
|
||||||
(("^from outdated[^\n]*") "")
|
|
||||||
(("^warn_if_outdated[^\n]*") ""))))
|
|
||||||
(add-after 'unpack 'sklearn-compatibility
|
|
||||||
(lambda _
|
|
||||||
(substitute* "pingouin/regression.py"
|
|
||||||
(("kwargs\\[\"penalty\"\\] = \"none\"")
|
|
||||||
"kwargs[\"penalty\"] = None")))))))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-pytest python-pytest-cov))
|
(list python-pytest python-pytest-cov))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue