gnu: Add python-loguru.

* gnu/packages/python-xyz.scm (python-loguru): New variable.
This commit is contained in:
Ricardo Wurmus 2023-05-04 10:51:38 +02:00
parent f234cda89a
commit 155137d28a
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -28521,6 +28521,40 @@ (define-public python-logutils
older versions of Python and so are packaged here.")
(license license:bsd-3)))
(define-public python-loguru
(package
(name "python-loguru")
(version "0.7.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "loguru" version))
(sha256
(base32
"1q83kr9zwwxchgyzf8gc6wi68ch5391mwzfxb5wlvs3axly0a4hn"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
;; All of these fail with: error: Cannot find implementation or library
;; stub for module named "loguru"
'(list "--ignore=tests/typesafety/test_logger.yml")))
(propagated-inputs (list python-colorama))
(native-inputs (list python-colorama
python-freezegun
python-mypy
python-pre-commit
python-pytest
python-pytest-cov
python-pytest-mypy-plugins
python-sphinx
python-sphinx-autobuild
python-sphinx-rtd-theme
python-tox))
(home-page "https://github.com/Delgan/loguru")
(synopsis "Python logging made (stupidly) simple")
(description "Python logging made (stupidly) simple")
(license license:expat)))
(define-public python-helper
(package
(name "python-helper")