summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-10-28 15:01:50 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-29 16:17:27 +0000
commit85d3a248430f037c2d9d6736349c23e775fcd697 (patch)
treecb839bda3d17227122671a5f48f988643cc3b55e
parent0a1c8f797c94e40f034f317bca42b52fe9c42f5e (diff)
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 <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/python-xyz.scm27
1 files changed, 22 insertions, 5 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index acf8ae315f7..784ef0e38fb 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