~ruther/guix-local

10923ddef12cf37ea337b5e9e825d530cf2c9031 — Sharlatan Hellseher 7 months ago 03b87a8
gnu: nikola: Update to 8.3.3.

* gnu/packages/python-xyz.scm (nikola): Update to 8.3.3.
[arguments] <test-flags>: Rework skipped tests.
[phases]{fix-pytest-config}: Repoint to pyproject.toml.
[native-inputs]: Remove python-wheel.

Change-Id: Id30eaca91c79b274bb5b087bc5477815dc285489
1 files changed, 23 insertions(+), 11 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +23 -11
@@ 37663,34 37663,46 @@ these linters: @code{pycodestlye}, @code{pyflakes}")
(define-public nikola
  (package
    (name "nikola")
    (version "8.3.1")
    (version "8.3.3")
    (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "Nikola" version))
        (uri (pypi-uri "nikola" version))
        (sha256
          (base32 "1fdgqx828b1syd1z2miliwrykmxryya3dcib28r56wvp37cl3wi1"))))
          (base32 "1ixi7bhcmyl6nxh4psjkj4q4wq5midgnks294r64zciazippsvb3"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:test-flags #~(list "--durations=10"
                           "--ignore=tests/integration/test_dev_server.py"
                           ;; Assertion fails in diff of HTML template.
                           "-k" "not test_compiling_markdown")
      ;; tests: 506 passed, 16 skipped, 10 deselected, 5 xfailed, 66 warnings
      #:test-flags
      #~(list "--durations=10"
              "--ignore=tests/integration/test_dev_server.py"
              "-k" (string-join
                    ;; Some time difference in example tests.
                    (list "not test_serves_root_dir[http://example.org/deep/down/a/rabbit/hole]"
                          "test_serves_root_dir[https://example.org:1234/blog]"
                          "test_serves_root_dir[https://example.org:3456/blog/]"
                          "test_serves_root_dir[https://example.org]"
                          ;; AssertionError: Calls not found.
                          "test_write_content_does_not_detroy_text"
                          ;; AssertionError: assert 'January 10, 2006,
                          ;; 12:34:56\u202fPM -0500' == 'January 10, 2006,
                          ;; 12:34:56\u202fPM EST'
                          "test_format_date_timezone")
                    " and not "))
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'fix-pytest-config
            (lambda _
              ;; Drop test coverage requirements.
              (substitute* "setup.cfg"
                ((".*--cov.*") "")))))))
              (substitute* "pyproject.toml"
                (("addopts.*") "")))))))
    (native-inputs
      (list nss-certs-for-test
            python-feedparser
            python-freezegun
            python-pytest
            python-setuptools
            python-wheel))
            python-setuptools))
    (inputs
      (list python-babel
            python-blinker