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
This commit is contained in:
Vinicius Monego 2025-06-22 13:20:33 -03:00
parent 99f85246e1
commit 73b7e4686a
No known key found for this signature in database
GPG key ID: 637B0B138065B68A

View file

@ -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