guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 85d3a248430f037c2d9d6736349c23e775fcd697
Author: Nicolas Graves <[email protected]>
AuthorDate: Tue Oct 28 15:01:50 2025 +0100
gnu: python-daemonize: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-daemonize):
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Add phase 'fix-tests.
[native-inputs]: Add coreutils-minimal, procps, python-setuptools.
[description]: Improve style.
Change-Id: I45f68ce73e1dddec8573eaa553d92e4b8b0f17fc
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/python-xyz.scm | 27 ++++++++++++++++++++++-----
1 file changed, 22 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index acf8ae315f..784ef0e38f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -30463,14 +30463,31 @@ key.
(version "2.5.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "daemonize" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/thesharp/daemonize")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1hwbl3gf9fdds9sc14zgjyjisjvxidrvqc11xlbb0b6jz17nw0nx"))))
- (build-system python-build-system)
+ (base32 "0pz914x6dfq133nfv0y8q8fss4zr52ip8mq3ds50rx0ddlbb0k2x"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-backend #~'custom
+ #:test-flags #~(list "tests/test.py")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'fix-tests
+ (lambda _
+ ;; XXX: nobody has group nogroup on Guix.
+ (substitute* "tests/test.py"
+ (("grp\\.getgrnam\\(\"nobody\"\\)\\.gr_gid")
+ (number->string (passwd:gid (getpw "nobody"))))))))))
+ (native-inputs (list coreutils-minimal procps python-setuptools))
(home-page "https://github.com/thesharp/daemonize")
(synopsis "Library for writing system daemons in Python")
- (description "Daemonize is a library for writing system daemons in
Python.")
+ (description
+ "Daemonize is a library for writing system daemons in Python.")
(license license:expat)))
(define-public python-pymacaroons