gnu: python-daemon: Update to 3.1.2.

* gnu/packages/python-xyz.scm (python-daemon): Update to 3.1.2.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Remove phase 'adjust-tests. Add phase
'discard-dynamic-metadata.
[native-inputs]: Add python-setuptools, remove python-docutils,
python-testtools.
[description]: Improve style.

Change-Id: Ibb3928a2e89146eafee7896f0c2dd8eefd1dc1d0
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-09-21 01:06:41 +02:00 committed by Sharlatan Hellseher
parent 4538180356
commit 8114c5549d
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -8375,39 +8375,39 @@ logging and tracing of the execution.")
(define-public python-daemon
(package
(name "python-daemon")
(version "3.0.1")
(version "3.1.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-daemon" version))
(method git-fetch)
(uri (git-reference
(url "https://pagure.io/python-daemon")
(commit (string-append "release/" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1rfsnij687hk97ppzs2q6mwmxgr632nh672ajd0gzsppf8ilamvc"))))
(build-system python-build-system)
(base32 "0rfchh68pxg68s02idc0qcm2s9yn587hv0b83r4isy5ccb3g60y4"))))
(build-system pyproject-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'check 'adjust-tests
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'discard-dynamic-metadata
(lambda _
;; FIXME: Determine why test fails
(substitute* "test/test_daemon.py"
(("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
(list python-lockfile python-packaging python-setuptools))
(native-inputs
(list python-docutils
python-testscenarios
python-testtools))
(substitute* "pyproject.toml"
(("^dynamic = " all)
(format #f "version = ~s~%~a" #$version all))
(("\"(description|readme|version|maintainers)\",")
""))
(for-each delete-file
'("setup.py"
"test/test_util_metadata.py"
"test/test_setup.py")))))))
(propagated-inputs (list python-lockfile))
(native-inputs (list python-testscenarios python-setuptools))
(home-page "https://pagure.io/python-daemon/")
(synopsis "Python library for making a Unix daemon process")
(description "Python-daemon is a library that assists a Python program to
turn itself into a well-behaved Unix daemon process, as specified in PEP 3143.
(description
"Python-daemon is a library that assists a Python program to turn itself
into a well-behaved Unix daemon process, as specified in PEP 3143.
This library provides a @code{DaemonContext} class that manages the following
important tasks for becoming a daemon process: