~ruther/guix-local

a4b7f243b94dac39665f1bb3ad2d542226972c02 — Sharlatan Hellseher 10 months ago 081e46e
gnu: python-eliot: Update to 1.17.5.

* gnu/packages/python-xyz.scm (python-eliot): Update to 1.17.5. Use
G-expressions.
[arguments] <phases>: Remove 'remove-eliot-prettyprint-tests and
'remove-failing-tests, use <#:test-flags> instead. Remove traling #t
from lambdas.
[native-inputs]: Remove python-black, python-coverage, python-flake8,
python-hypothesis, python-pytest-xdist, python-sphinx,
python-sphinx-rtd-theme, python-twine, python-twisted, and
python-wheel.

Change-Id: I58925e5f235165a8d6f36a36eb54f9e57a36c814
1 files changed, 20 insertions(+), 40 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +20 -40
@@ 33423,55 33423,35 @@ tbutils
(define-public python-eliot
  (package
    (name "python-eliot")
    (version "1.16.0")
    (version "1.17.5")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "eliot" version))
       (sha256
        (base32 "1ybf5klr8r28yfrkm1a3598h83h10pkx1j1saf9h3lk21isxl9la"))))
        (base32 "0rx7isb3h5fvraycfgqm781asjjmqldn0qcv6s2r5fwc1p31ffvb"))))
    (build-system pyproject-build-system)
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (add-after 'unpack 'remove-journald-support
           (lambda _
             (for-each delete-file
                     '("eliot/tests/test_journald.py"
                       "eliot/journald.py"))
             #t))
         (add-after 'remove-journald-support 'remove-eliot-prettyprint-tests
           ;; remove command-line tool's tests. TODO eliot-prettyprint should
           ;; be installed and these tests should pass.
           (lambda _
             (delete-file "eliot/tests/test_prettyprint.py")
             #t))
         (add-after 'remove-eliot-prettyprint-tests 'remove-failing-tests
           (lambda _
             ;; These tests started to fail after updating python-pandas to
             ;; 1.3.3 and python-dask to 2021.9.1.
             (substitute* "eliot/tests/test_validation.py"
               (("test_omitLoggerFromActionType")
                "_test_omitLoggerFromActionType")
               (("test_logCallsDefaultLoggerWrite")
                "_test_logCallsDefaultLoggerWrite"))
             #t)))))
    (propagated-inputs
     (list python-boltons python-orjson python-pyrsistent python-zope-interface))
     (list
      ;; tests: 407 passed, 21 skipped, 2 deselected, 5479 warnings
      ;; Two tests fail with error: TypeError: Unsupported type.
      #:test-flags #~(list "-k" "not test_basic_types and not test_dataclass")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'remove-journald-support
            (lambda _
              (for-each delete-file
                        '("eliot/tests/test_journald.py"
                          "eliot/journald.py")))))))
    (native-inputs
     (list python-black
           python-coverage
           python-flake8
           python-hypothesis
           python-pytest
           python-pytest-xdist
     (list python-pytest
           python-setuptools
           python-sphinx
           python-sphinx-rtd-theme
           python-testtools
           python-twine
           python-twisted
           python-wheel))
           python-testtools))
    (propagated-inputs
     (list python-boltons
           python-orjson
           python-pyrsistent
           python-zope-interface))
    (home-page "https://github.com/itamarst/eliot/")
    (synopsis "Eliot: the logging system that tells you why it happened")
    (description