gnu: python-daemon: Update to 3.0.1.

* gnu/packages/python-xyz.scm (python-daemon): Update to 3.0.1.
[arguments]: Skip two more tests.
[propagated-inputs]: Add PYTHON-PACKAGING and PYTHON-SETUPTOOLS.
[native-inputs]: Remove PYTHON-COVERAGE, PYTHON-TWINE, and PYTHON-MOCK.
This commit is contained in:
Marius Bakke 2023-09-11 17:35:31 +08:00
parent 9d87b400a6
commit 977dbf2588
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -5625,38 +5625,35 @@ logging and tracing of the execution.")
(define-public python-daemon (define-public python-daemon
(package (package
(name "python-daemon") (name "python-daemon")
(version "2.3.0") (version "3.0.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "python-daemon" version)) (uri (pypi-uri "python-daemon" version))
(sha256 (sha256
(base32 (base32
"1bxfn2bq56sd4w0nm9mqy8y0905m7fc8vmhnjxlrf49vcbqr7adx")))) "1rfsnij687hk97ppzs2q6mwmxgr632nh672ajd0gzsppf8ilamvc"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'check 'adjust-tests (add-before 'check 'adjust-tests
(lambda _ (lambda _
;; Drop use of testtools.helpers.safe_hasattr which has
;; been removed in favor of hasattr.
(substitute* "test/test_metadata.py"
(("testtools\\.helpers\\.safe_hasattr")
"hasattr"))
;; FIXME: Determine why test fails ;; FIXME: Determine why test fails
(substitute* "test/test_daemon.py" (substitute* "test/test_daemon.py"
(("test_detaches_process_context") (("test_detaches_process_context")
"skip_test_detaches_process_context"))))))) "skip_test_detaches_process_context"))
(substitute* "test/scaffold.py"
(("test_exception_instance")
"skip_test_exception_instance")
(("test_exception_types")
"skip_test_exception_types")))))))
(propagated-inputs (propagated-inputs
(list python-lockfile)) (list python-lockfile python-packaging python-setuptools))
(native-inputs (native-inputs
(list python-coverage (list python-docutils
python-testtools
python-testscenarios python-testscenarios
python-twine python-testtools))
python-mock
python-docutils))
(home-page "https://pagure.io/python-daemon/") (home-page "https://pagure.io/python-daemon/")
(synopsis "Python library for making a Unix daemon process") (synopsis "Python library for making a Unix daemon process")
(description "Python-daemon is a library that assists a Python program to (description "Python-daemon is a library that assists a Python program to