gnu: python-pingouin: Update to 0.5.4.

* gnu/packages/python-science.scm (python-pingouin): Update to 0.5.4.
[build-system]: Use pyproject-build-system.
[arguments]: Remove custom 'check phase; add 'sklearn-compatibility phase;
skip one test.

Change-Id: I8d13f15558eadee0547f04bc4bb89a0fd0e0767b
This commit is contained in:
Ricardo Wurmus 2024-05-03 14:55:53 +02:00
parent 99bf1b1002
commit 041ea43a86
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -1991,7 +1991,7 @@ of Pandas
(define-public python-pingouin (define-public python-pingouin
(package (package
(name "python-pingouin") (name "python-pingouin")
(version "0.5.2") (version "0.5.4")
(source (source
;; The PyPI tarball does not contain the tests. ;; The PyPI tarball does not contain the tests.
(origin (origin
@ -2002,11 +2002,15 @@ of Pandas
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0czy7cpn6xx9fs6wbz6rq2lpkb1a89bzxj1anf2f9in1m5qyrh83")))) "1j3qkgvyc31604ddl952h4hwza7schg8kwkycmxvpvx7xjj7nn68"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:test-flags
;; This one fails due to minor differences in accuracy
'(list "-k" "not test_logistic_regression")
#:phases
'(modify-phases %standard-phases
(add-after 'unpack 'loosen-requirements (add-after 'unpack 'loosen-requirements
(lambda _ (lambda _
(substitute* '("requirements.txt" "setup.py") (substitute* '("requirements.txt" "setup.py")
@ -2024,10 +2028,11 @@ of Pandas
(substitute* "pingouin/__init__.py" (substitute* "pingouin/__init__.py"
(("^from outdated[^\n]*") "") (("^from outdated[^\n]*") "")
(("^warn_if_outdated[^\n]*") "")))) (("^warn_if_outdated[^\n]*") ""))))
(replace 'check (add-after 'unpack 'sklearn-compatibility
(lambda* (#:key tests? #:allow-other-keys) (lambda _
(when tests? (substitute* "pingouin/regression.py"
(invoke "pytest"))))))) (("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