~ruther/guix-local

73b7e4686aa7e216824f28acaeef7b94f3a7c110 — Vinicius Monego 1 year, 7 days ago 99f8524
gnu: python-logbook: Update to 1.8.2.

* gnu/packages/python-xyz.scm (python-logbook): Update to 1.8.2.
[source]: Update URI.
[build-system]: Use pyproject-build-system.
[arguments]<#:phases>: Delete unnecessary phase 'cythonize-sources'. Do
not override the 'check' phase.
[native-inputs]: Remove python-cython, python-mock,
python-pytest-cov. Add python-cython-3, python-setuptools, python-wheel.

Change-Id: I4b4c8ea60bc0ad7fdcb4d5320e5337f3ca38ed6f
1 files changed, 9 insertions(+), 19 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +9 -19
@@ 1428,30 1428,20 @@ easy logging and rotating to a console or a file.")
(define-public python-logbook
  (package
    (name "python-logbook")
    (version "1.5.3")
    (version "1.8.2")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "Logbook" version))
       (uri (pypi-uri "logbook" version))
       (sha256
        (base32 "1s1gyfw621vid7qqvhddq6c3z2895ci4lq3g0r1swvpml2nm9x36"))))
    (build-system python-build-system)
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (add-before 'build 'cythonize-sources
           (lambda _
             (with-directory-excursion "logbook"
               (invoke "cython" "_speedups.pyx"))))
         (replace 'check
           (lambda* (#:key tests? #:allow-other-keys)
             (when tests?
               ;; Check cython build also
               (setenv "CYBUILD" "True")
               (invoke "pytest" "--cov=logbook" "-r" "s" "tests")))))))
        (base32 "0afk1nmvj9fp3igzmxa4a048fm21sa4aw1z2ix8jzvs62ry7j6bd"))))
    (build-system pyproject-build-system)
    (native-inputs
     (list python-cython python-mock python-pytest python-pytest-cov
           python-brotli))
     (list python-brotli
           python-cython-3
           python-pytest
           python-setuptools
           python-wheel))
    (home-page "https://github.com/getlogbook/logbook")
    (synopsis "Logbook is a logging replacement for Python")
    (description