diff options
author | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-03-16 19:53:51 +0000 |
---|---|---|
committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-03-16 20:29:23 +0000 |
commit | 3ff5f9b3dd05a464b8260717be50d46153d53961 (patch) | |
tree | 4e9ab78070bf623248455c68ac81d2356a30dd6a | |
parent | f79b91c2e76d915b5148a632f4e95cec48638e12 (diff) | |
download | guix-3ff5f9b3dd05a464b8260717be50d46153d53961.tar.gz guix-3ff5f9b3dd05a464b8260717be50d46153d53961.zip |
gnu: python-pint: Enable all tests.
* gnu/packages/python-xyz.scm (python-pint): Enable all tests, adjust
style, use G-expressions.
[arguments] <test-flags>: Try to run all tests.
<phases>: Add 'pre-check.
[native-inputs]: Remove python-pytest-benchmark and python-pytest-cov.
Change-Id: Ie6e8b37f6fd66b2c0e18fdd382190d8fd379c46d
-rw-r--r-- | gnu/packages/python-xyz.scm | 49 |
1 files changed, 26 insertions, 23 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d7661ead8d..fe30c1bc55 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -2156,32 +2156,35 @@ Markdown. All extensions are found under the module namespace of pymdownx.") (package (name "python-pint") (version "0.24.4") - (source (origin - (method url-fetch) - (uri (pypi-uri "pint" version)) - (sha256 - (base32 "100vp5jg2sqj5wxaflj1rqjv2pk4fd55l2h2sdn7m0vlnlwm89rm")))) + (source + (origin + (method url-fetch) + (uri (pypi-uri "pint" version)) + (sha256 + (base32 "100vp5jg2sqj5wxaflj1rqjv2pk4fd55l2h2sdn7m0vlnlwm89rm")))) (build-system pyproject-build-system) (arguments (list - #:test-flags - '(list "--ignore=pint/testsuite/benchmarks" - "-k" (string-append - ;; This test tries to write to $HOME/.cache/pint. - "not test_auto" - ;; Our pytest can't match RuntimeWarning for some reason. - ;; Note: python-pint@0.24.4 would work around this, too. - " and not test_nonnumeric_magnitudes" - ;; Fails with "Group USCSLengthInternational already - ;; present in registry" - " and not test_load_definitions_stage_2")))) - (native-inputs - (list python-pytest python-pytest-benchmark python-pytest-cov - python-pytest-mpl python-pytest-subtests - python-setuptools python-setuptools-scm python-wheel)) - (propagated-inputs - (list python-flexcache python-flexparser - python-platformdirs python-typing-extensions)) + #:test-flags #~(list "--ignore=pint/testsuite/benchmarks") + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'pre-check + (lambda _ + ;; PermissionError: [Errno 13] Permission denied: + ;; '/homeless-shelter' + (setenv "HOME" "/tmp")))))) + (native-inputs + (list python-pytest + python-pytest-mpl + python-pytest-subtests + python-setuptools + python-setuptools-scm + python-wheel)) + (propagated-inputs + (list python-flexcache + python-flexparser + python-platformdirs + python-typing-extensions)) (home-page "https://github.com/hgrecco/pint") (synopsis "Physical quantities module") (description |