From unknown Mon Aug 18 04:45:13 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#34365] [PATCH] gnu: Add python-daemon. Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Feb 2019 09:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34365 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34365@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154953257730628 (code B ref -1); Thu, 07 Feb 2019 09:43:02 +0000 Received: (at submit) by debbugs.gnu.org; 7 Feb 2019 09:42:57 +0000 Received: from localhost ([127.0.0.1]:36566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grgCv-0007xw-2g for submit@debbugs.gnu.org; Thu, 07 Feb 2019 04:42:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42195) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grgCs-0007xi-RR for submit@debbugs.gnu.org; Thu, 07 Feb 2019 04:42:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:44599) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1grgCl-0007Mb-Ey for submit@debbugs.gnu.org; Thu, 07 Feb 2019 04:42:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grgCk-0000sJ-Hy for guix-patches@gnu.org; Thu, 07 Feb 2019 04:42:47 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grgCi-0007KU-Lr for guix-patches@gnu.org; Thu, 07 Feb 2019 04:42:46 -0500 Received: from cascadia.aikidev.net ([173.255.214.101]:50532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grgCf-0007CG-Qc for guix-patches@gnu.org; Thu, 07 Feb 2019 04:42:42 -0500 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100e]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 03C561AAC0 for ; Thu, 7 Feb 2019 01:42:27 -0800 (PST) From: Vagrant Cascadian Date: Thu, 07 Feb 2019 01:42:21 -0800 Message-ID: <87va1w6iki.fsf@ponder> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 173.255.214.101 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable * gnu/packages/python-xyz.scm (python-daemon): New variable. =2D-- gnu/packages/python-xyz.scm | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d2b348942..f8a6db720 100644 =2D-- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -2188,6 +2188,57 @@ logging and tracing of the execution.") (define-public python2-joblib (package-with-python2 python-joblib)) =20 +(define-public python-daemon + (package + (name "python-daemon") + (version "2.2.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "python-daemon" version)) + (sha256 + (base32 + "09fcjdjzk9ywmpnrj62iyxqgcygzdafsz41qlrk2dknzbagcmzmg")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'disable-tests + (lambda _ + ;; FIXME: Determine why test fails + (substitute* "test/test_daemon.py" + (("test_detaches_process_context") + "skip_test_detaches_process_context"))))))) + (propagated-inputs + `(("python-docutils" ,python-docutils) + ("python-lockfile" ,python-lockfile) + ("python-setuptools" ,python-setuptools))) + (native-inputs + `(("python-unittest2" ,python-unittest2) + ("python-testtools" ,python-testtools) + ("python-testscenarios" ,python-testscenarios) + ("python-mock" ,python-mock) + ("python-docutils" ,python-docutils))) + (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 3= 143. + +This library provides a @code{DaemonContext} class that manages the follow= ing +important tasks for becoming a daemon process: +@enumerate +@item Detach the process into its own process group. +@item Set process environment appropriate for running inside a chroot. +@item Renounce suid and sgid privileges. +@item Close all open file descriptors. +@item Change the working directory, uid, gid, and umask. +@item Set appropriate signal handlers. +@item Open new file descriptors for stdin, stdout, and stderr. +@item Manage a specified PID lock file. +@item Register cleanup functions for at-exit processing. +@end enumerate") + (license (list license:asl2.0 license:gpl3+)))) + (define-public python-docutils (package (name "python-docutils") =2D-=20 2.20.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCXFv9fQAKCRDcUY/If5cW qh7GAQD2XluCmztriX1YGP+CimnchEieSbB2lAPdtx+TCOtZVwD/bVqoxY1Wkaw8 /kxNKsgOMt9bl89kWmB3hRNPWpsOKwU= =tJDI -----END PGP SIGNATURE----- --=-=-=-- From unknown Mon Aug 18 04:45:13 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#34365] [PATCH] gnu: Add python-daemon. Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Feb 2019 11:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34365 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ricardo Wurmus Cc: 34365@debbugs.gnu.org Received: via spool by 34365-submit@debbugs.gnu.org id=B34365.154953976410624 (code B ref 34365); Thu, 07 Feb 2019 11:43:02 +0000 Received: (at 34365) by debbugs.gnu.org; 7 Feb 2019 11:42:44 +0000 Received: from localhost ([127.0.0.1]:36616 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gri4q-0002lH-JW for submit@debbugs.gnu.org; Thu, 07 Feb 2019 06:42:44 -0500 Received: from cascadia.aikidev.net ([173.255.214.101]:60558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gri4o-0002l4-Pf for 34365@debbugs.gnu.org; Thu, 07 Feb 2019 06:42:43 -0500 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100e]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 4CC7B1AAC0; Thu, 7 Feb 2019 03:42:35 -0800 (PST) From: Vagrant Cascadian In-Reply-To: <874l9gexmz.fsf@elephly.net> References: <87va1w6iki.fsf@ponder> <874l9gexmz.fsf@elephly.net> Date: Thu, 07 Feb 2019 03:42:29 -0800 Message-ID: <87sgwz7rkq.fsf@ponder> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2019-02-07, Ricardo Wurmus wrote: >> * gnu/packages/python-xyz.scm (python-daemon): New variable. > > Thanks for the patch! Thanks for the lightning fast review! >> + (add-before 'check 'disable-tests >> + (lambda _ >> + ;; FIXME: Determine why test fails >> + (substitute* "test/test_daemon.py" >> + (("test_detaches_process_context") >> + "skip_test_detaches_process_context"))))))) > > Before pushing this I=E2=80=99ll add a final #T to this phase. (In the p= ast #F > would indicate failure, but that=E2=80=99s on longer the case. =E2=80=9C= substitute*=E2=80=9D > annoyingly returns an unspecified value.) My eyes still have trouble identifying where exactly this would go... and #T/#F vs. #t/#f has me a bit confused for good measure! Obviously, it'd be better to fix the test, or at least understand why it fails... >> + (propagated-inputs >> + `(("python-docutils" ,python-docutils) >> + ("python-lockfile" ,python-lockfile) >> + ("python-setuptools" ,python-setuptools))) >> + (native-inputs >> + `(("python-unittest2" ,python-unittest2) >> + ("python-testtools" ,python-testtools) >> + ("python-testscenarios" ,python-testscenarios) >> + ("python-mock" ,python-mock) >> + ("python-docutils" ,python-docutils))) > > Docutils is both among native inputs as well as regular inputs. Is this > intended? I *think* it only needs to be in native-inputs; I think propagated outputs was generated by the importer... and now that my attention is drawn to it, I'm dubious of python-setuptools needing to be in propagated-inputs as well. I can update it and check again later... >> + (license (list license:asl2.0 license:gpl3+)))) > > What does this list mean? I guess it's best practice in Guix to make a comment when multiple licenses are listed? Apparently only setup.py is gpl3+, everything else is apache 2.0 licensed. That was my quick look at the code itself, and basically confirmed by: https://sources.debian.org/src/python-daemon/2.2.3-1/debian/copyright/ live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCXFwZpgAKCRDcUY/If5cW qp5PAP0TOhbEY1XyFy7oOSOmRpMXySdGkU5Ul7ghc3WqlqhaDAD8CwxsFWsvlxT7 lw67oPHzsEtb0EtKN2DRml+RvC75iQE= =pkAH -----END PGP SIGNATURE----- --=-=-=-- From unknown Mon Aug 18 04:45:13 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#34365] [PATCH] gnu: Add python-daemon. Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Feb 2019 13:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34365 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Vagrant Cascadian Cc: 34365@debbugs.gnu.org Received: via spool by 34365-submit@debbugs.gnu.org id=B34365.154954485626484 (code B ref 34365); Thu, 07 Feb 2019 13:08:02 +0000 Received: (at 34365) by debbugs.gnu.org; 7 Feb 2019 13:07:36 +0000 Received: from localhost ([127.0.0.1]:36635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grjOx-0006t4-3j for submit@debbugs.gnu.org; Thu, 07 Feb 2019 08:07:36 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grjOu-0006st-Hc for 34365@debbugs.gnu.org; Thu, 07 Feb 2019 08:07:33 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1549544836; cv=none; d=zoho.com; s=zohoarc; b=Bn29b3yWwrhp+0st/HV5sFu7aJUycFl24+qo5RYaKEIx8WqZ8iYb5wJq5QGvyXjTBy4UXE3HjMoHcrkntfMqBKfvPjVOMRHoFsBZu/dPUR+a5z3oE/tV1wMoABZXePuzrSf1DVnAB9el0vAZqtliEBwm5qLLd4eamIx41xxc2h4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1549544836; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=NoDhB6GLn3y0+jIDKP+ILxq9Gsk3U8mQnMDDGKKLof4=; b=L+YCe96d5awDXmaA+xQWb7a+OMmbiLOSelq29MYhPwRlqSr21M5vMhAn2o+6ywEO9yI5tXJIDvwpIcZ1ROgw7xPFKC+ep1q3/2NfeiU+kusLSu7b9PCkSPD539rcSA4DTORb7yPWgpxzlAdPV9izQpYPVLm0XTZfIV2LABgZMVs= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1549544836; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; l=1276; bh=NoDhB6GLn3y0+jIDKP+ILxq9Gsk3U8mQnMDDGKKLof4=; b=dpoPvWB9PObs2pu6RxCyUbhqUfWria0LevL4ZB3vpHIUp16dxcUhzEul/oMukMLv +MEvQbHD48dGvo/QzNot19AxUfYl3JAen9AMuJoisFmejXyEFWDnFSH8IN2gg+tj/Dy PmRUfuyUBbMa3eDBq397hm+D+kTKwp37YY6zC4wQ= Received: from localhost (141.80.247.165 [141.80.247.165]) by mx.zohomail.com with SMTPS id 1549544835184295.2600580964819; Thu, 7 Feb 2019 05:07:15 -0800 (PST) References: <87va1w6iki.fsf@ponder> <874l9gexmz.fsf@elephly.net> <87sgwz7rkq.fsf@ponder> User-agent: mu4e 1.0; emacs 26.1 From: Ricardo Wurmus In-reply-to: <87sgwz7rkq.fsf@ponder> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Thu, 07 Feb 2019 14:07:12 +0100 Message-ID: <87va1v4uin.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Vagrant Cascadian writes: >> Before pushing this I=E2=80=99ll add a final #T to this phase. (In the = past #F >> would indicate failure, but that=E2=80=99s on longer the case. =E2=80= =9Csubstitute*=E2=80=9D >> annoyingly returns an unspecified value.) > > My eyes still have trouble identifying where exactly this would > go... and #T/#F vs. #t/#f has me a bit confused for good measure! Oh sorry. It should go after the (substitute* =E2=80=A6) clause. We somet= imes capitalize variable names and values when referring to them. We would write =E2=80=9C#t=E2=80=9D here. >>> + (license (list license:asl2.0 license:gpl3+)))) >> >> What does this list mean? > > I guess it's best practice in Guix to make a comment when multiple > licenses are listed? Yes. We don=E2=80=99t have a syntactic way to express license algebra, so = we usually add a comment when a list of licenses applies. > Apparently only setup.py is gpl3+, everything else is apache 2.0 > licensed. That was my quick look at the code itself, and basically > confirmed by: > > https://sources.debian.org/src/python-daemon/2.2.3-1/debian/copyright/ Excellent. This can be added as a short comment above the license field. Thanks! -- Ricardo From unknown Mon Aug 18 04:45:13 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#34365] [PATCH] gnu: Add python-daemon. Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 07 Feb 2019 14:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34365 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ricardo Wurmus Cc: 34365@debbugs.gnu.org Received: via spool by 34365-submit@debbugs.gnu.org id=B34365.15495510083528 (code B ref 34365); Thu, 07 Feb 2019 14:51:02 +0000 Received: (at 34365) by debbugs.gnu.org; 7 Feb 2019 14:50:08 +0000 Received: from localhost ([127.0.0.1]:36683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grl0B-0000uo-S2 for submit@debbugs.gnu.org; Thu, 07 Feb 2019 09:50:08 -0500 Received: from cascadia.aikidev.net ([173.255.214.101]:60836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grl06-0000u7-HY for 34365@debbugs.gnu.org; Thu, 07 Feb 2019 09:50:03 -0500 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100e]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 994EE1AAC0; Thu, 7 Feb 2019 06:49:54 -0800 (PST) From: Vagrant Cascadian In-Reply-To: <87va1v4uin.fsf@elephly.net> References: <87va1w6iki.fsf@ponder> <874l9gexmz.fsf@elephly.net> <87sgwz7rkq.fsf@ponder> <87va1v4uin.fsf@elephly.net> Date: Thu, 07 Feb 2019 06:49:48 -0800 Message-ID: <87pns37iwj.fsf@ponder> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2019-02-07, Ricardo Wurmus wrote: > Vagrant Cascadian writes: > >>> Before pushing this I=E2=80=99ll add a final #T to this phase. (In the= past #F >>> would indicate failure, but that=E2=80=99s on longer the case. =E2=80= =9Csubstitute*=E2=80=9D >>> annoyingly returns an unspecified value.) ... >>>> + (license (list license:asl2.0 license:gpl3+)))) >>> >>> What does this list mean? ... >> Apparently only setup.py is gpl3+, everything else is apache 2.0 >> licensed. That was my quick look at the code itself, and basically >> confirmed by: >> >> https://sources.debian.org/src/python-daemon/2.2.3-1/debian/copyright/ > > Excellent. This can be added as a short comment above the license > field. Ok, the attached patch should address the above two issues and removed the needless python-setuptools and python-docutils propagated inputs mentioned earlier. live well, vagrant --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-Add-python-daemon.patch Content-Transfer-Encoding: quoted-printable From=20e22c1ac09a3db62eca7db12d4322672ab18c2ffc Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Thu, 7 Feb 2019 01:27:41 -0800 Subject: [PATCH] gnu: Add python-daemon. * gnu/packages/python-xyz.scm (python-daemon): New variable. =2D-- gnu/packages/python-xyz.scm | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d2b348942..cf293c004 100644 =2D-- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -2188,6 +2188,57 @@ logging and tracing of the execution.") (define-public python2-joblib (package-with-python2 python-joblib)) =20 +(define-public python-daemon + (package + (name "python-daemon") + (version "2.2.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "python-daemon" version)) + (sha256 + (base32 + "09fcjdjzk9ywmpnrj62iyxqgcygzdafsz41qlrk2dknzbagcmzmg")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'disable-tests + (lambda _ + ;; FIXME: Determine why test fails + (substitute* "test/test_daemon.py" + (("test_detaches_process_context") + "skip_test_detaches_process_context")) + #t))))) + (propagated-inputs + `(("python-lockfile" ,python-lockfile))) + (native-inputs + `(("python-unittest2" ,python-unittest2) + ("python-testtools" ,python-testtools) + ("python-testscenarios" ,python-testscenarios) + ("python-mock" ,python-mock) + ("python-docutils" ,python-docutils))) + (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 3= 143. + +This library provides a @code{DaemonContext} class that manages the follow= ing +important tasks for becoming a daemon process: +@enumerate +@item Detach the process into its own process group. +@item Set process environment appropriate for running inside a chroot. +@item Renounce suid and sgid privileges. +@item Close all open file descriptors. +@item Change the working directory, uid, gid, and umask. +@item Set appropriate signal handlers. +@item Open new file descriptors for stdin, stdout, and stderr. +@item Manage a specified PID lock file. +@item Register cleanup functions for at-exit processing. +@end enumerate") + ;; Only setup.py is gpl3+, everything else is apache 2.0 licensed. + (license (list license:asl2.0 license:gpl3+)))) + (define-public python-docutils (package (name "python-docutils") =2D-=20 2.20.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCXFxFjQAKCRDcUY/If5cW qmGbAP9+q2TIvSqfKsrvBvH2xDB6g8AVcKaMnxQe0aZA4LI54AEA6DdNA08C/Iir vwnZjXXriALsPu1+B0oNseC3I9MydwY= =EUdL -----END PGP SIGNATURE----- --==-=-=-- From unknown Mon Aug 18 04:45:13 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#34365] [PATCH] gnu: Add python-daemon. Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 08 Feb 2019 05:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34365 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Vagrant Cascadian Cc: 34365@debbugs.gnu.org Received: via spool by 34365-submit@debbugs.gnu.org id=B34365.15496042031090 (code B ref 34365); Fri, 08 Feb 2019 05:37:02 +0000 Received: (at 34365) by debbugs.gnu.org; 8 Feb 2019 05:36:43 +0000 Received: from localhost ([127.0.0.1]:38812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gryqB-0000HW-H4 for submit@debbugs.gnu.org; Fri, 08 Feb 2019 00:36:43 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gryq9-0000HL-4K for 34365@debbugs.gnu.org; Fri, 08 Feb 2019 00:36:42 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1549532987; cv=none; d=zoho.com; s=zohoarc; b=imtDweIsHDArwXQ6ry5MEQWKx3jrSdzPkLE+M0+LArd65ULt/qCkI3IKSRBZTMgzAEdJcwdfasBXhdKmBNFo9F7QHgu1Kldc81c/7Vhz9ZqD25M67A8haerXdHThGuhoFwGDfTtgLvrEcCxvZVZiPhi9Vh+tvfQdd9sdX6+oNqc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1549532987; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results; bh=KZfHpUTWZBIs6EVWkuwi5+RHKbgR/RXOkFCAfqpM+2s=; b=nydCyOH6kh+XcCdN3Uy3J6AUULF0qp4kTk/MjidVrka/HX7n9HJVT29keCGXC3QWm/RrY+ILCw1xPTUESkzSkyTUrxIA4YVvSWq6JHOlPpZ0Kjigm6nKktpPwvTTewV0uNtUuaqUXaPodGO3sOKp3aeMPo5NnOQi+fP136xVBsM= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1549532987; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; l=1144; bh=KZfHpUTWZBIs6EVWkuwi5+RHKbgR/RXOkFCAfqpM+2s=; b=Gs2RSOcbSTkcQNPaeHJKur+Vn56sSRFJ2tYOX13KiFUwuUqmJnnbTMlMcO6YhAFt q1MDaDYb4Fbm74CUGyH1worqvzPoH89AszRRt8ejnBB12elk228tBPuHLZvjh3/RPog uMmvOoU+UgkR2PsCStiloWa5p5yEpPvVbnMPQkeI= Received: from localhost (141.80.247.165 [141.80.247.165]) by mx.zohomail.com with SMTPS id 1549532986248508.82094725926106; Thu, 7 Feb 2019 01:49:46 -0800 (PST) References: <87va1w6iki.fsf@ponder> User-agent: mu4e 1.0; emacs 26.1 From: Ricardo Wurmus In-reply-to: <87va1w6iki.fsf@ponder> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Thu, 07 Feb 2019 10:49:40 +0100 Message-ID: <874l9gexmz.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Vagrant, > * gnu/packages/python-xyz.scm (python-daemon): New variable. Thanks for the patch! > + (add-before 'check 'disable-tests > + (lambda _ > + ;; FIXME: Determine why test fails > + (substitute* "test/test_daemon.py" > + (("test_detaches_process_context") > + "skip_test_detaches_process_context"))))))) Before pushing this I=E2=80=99ll add a final #T to this phase. (In the pas= t #F would indicate failure, but that=E2=80=99s on longer the case. =E2=80=9Csu= bstitute*=E2=80=9D annoyingly returns an unspecified value.) > + (propagated-inputs > + `(("python-docutils" ,python-docutils) > + ("python-lockfile" ,python-lockfile) > + ("python-setuptools" ,python-setuptools))) > + (native-inputs > + `(("python-unittest2" ,python-unittest2) > + ("python-testtools" ,python-testtools) > + ("python-testscenarios" ,python-testscenarios) > + ("python-mock" ,python-mock) > + ("python-docutils" ,python-docutils))) Docutils is both among native inputs as well as regular inputs. Is this intended? > + (license (list license:asl2.0 license:gpl3+)))) What does this list mean? --=20 Ricardo From unknown Mon Aug 18 04:45:13 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Vagrant Cascadian Subject: bug#34365: closed (Re: [bug#34365] [PATCH] gnu: Add python-daemon.) Message-ID: References: <20190211104844.4053dfba@scratchpost.org> <87va1w6iki.fsf@ponder> X-Gnu-PR-Message: they-closed 34365 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 34365@debbugs.gnu.org Date: Mon, 11 Feb 2019 09:49:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1549878542-10467-1" This is a multi-part message in MIME format... ------------=_1549878542-10467-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #34365: [PATCH] gnu: Add python-daemon. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 34365@debbugs.gnu.org. --=20 34365: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34365 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1549878542-10467-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 34365-done) by debbugs.gnu.org; 11 Feb 2019 09:48:54 +0000 Received: from localhost ([127.0.0.1]:43119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gt8Cs-0002iW-DR for submit@debbugs.gnu.org; Mon, 11 Feb 2019 04:48:54 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:56784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gt8Cq-0002iM-O8 for 34365-done@debbugs.gnu.org; Mon, 11 Feb 2019 04:48:53 -0500 Received: from localhost (77.116.204.134.wireless.dyn.drei.com [77.116.204.134]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 97477336237A; Mon, 11 Feb 2019 10:48:50 +0100 (CET) Date: Mon, 11 Feb 2019 10:48:44 +0100 From: Danny Milosavljevic To: Vagrant Cascadian Subject: Re: [bug#34365] [PATCH] gnu: Add python-daemon. Message-ID: <20190211104844.4053dfba@scratchpost.org> In-Reply-To: <87pns37iwj.fsf@ponder> References: <87va1w6iki.fsf@ponder> <874l9gexmz.fsf@elephly.net> <87sgwz7rkq.fsf@ponder> <87va1v4uin.fsf@elephly.net> <87pns37iwj.fsf@ponder> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/8DxbtFgdaXaXit9OJcZXxJu"; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 34365-done Cc: Ricardo Wurmus , 34365-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --Sig_/8DxbtFgdaXaXit9OJcZXxJu Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Vagrant, thanks! I've applied this to guix master. I've also reported the test failure upstream as https://pagure.io/python-da= emon/issue/28 --Sig_/8DxbtFgdaXaXit9OJcZXxJu Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlxhRPwACgkQ5xo1VCww uqXGMgf8DkcZpMR6mdlQXFOosnhNH8sf/UvztyV7sbr7c+U1lYRyrml0MfCNP4lc zvz7YDH3DDO2AdkynmxDOI9BNyOqVp8IZ6fcg+aDDjmKp4z4+vYJh6r9Z7imoY/k aLscdiwBcT3WCJPhk4Qvl0gm6ztTKOrt5qKgBDMT5WZYgqCEsiKf1v3z3D6VqOuY qOhN9trJ+yM+7b+ZqMlw3tXjlAkfasE9vlqDqtRhwKv/yfXhGo6mqfAYqMAov9EV LLQrsFyfpHyvQeUZNMlRtSRYL3oGGhsW0Z5TzFOE5ZIxdSLuswhHpNwrPmsL0CLa pDUc9qAGDx3Na4YTInPCr8XiTp1VJg== =r0wc -----END PGP SIGNATURE----- --Sig_/8DxbtFgdaXaXit9OJcZXxJu-- ------------=_1549878542-10467-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 7 Feb 2019 09:42:57 +0000 Received: from localhost ([127.0.0.1]:36566 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grgCv-0007xw-2g for submit@debbugs.gnu.org; Thu, 07 Feb 2019 04:42:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42195) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1grgCs-0007xi-RR for submit@debbugs.gnu.org; Thu, 07 Feb 2019 04:42:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:44599) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1grgCl-0007Mb-Ey for submit@debbugs.gnu.org; Thu, 07 Feb 2019 04:42:48 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56561) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grgCk-0000sJ-Hy for guix-patches@gnu.org; Thu, 07 Feb 2019 04:42:47 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grgCi-0007KU-Lr for guix-patches@gnu.org; Thu, 07 Feb 2019 04:42:46 -0500 Received: from cascadia.aikidev.net ([173.255.214.101]:50532) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grgCf-0007CG-Qc for guix-patches@gnu.org; Thu, 07 Feb 2019 04:42:42 -0500 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100e]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 03C561AAC0 for ; Thu, 7 Feb 2019 01:42:27 -0800 (PST) From: Vagrant Cascadian To: guix-patches@gnu.org Subject: [PATCH] gnu: Add python-daemon. Date: Thu, 07 Feb 2019 01:42:21 -0800 Message-ID: <87va1w6iki.fsf@ponder> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 173.255.214.101 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable * gnu/packages/python-xyz.scm (python-daemon): New variable. =2D-- gnu/packages/python-xyz.scm | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index d2b348942..f8a6db720 100644 =2D-- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -2188,6 +2188,57 @@ logging and tracing of the execution.") (define-public python2-joblib (package-with-python2 python-joblib)) =20 +(define-public python-daemon + (package + (name "python-daemon") + (version "2.2.3") + (source + (origin + (method url-fetch) + (uri (pypi-uri "python-daemon" version)) + (sha256 + (base32 + "09fcjdjzk9ywmpnrj62iyxqgcygzdafsz41qlrk2dknzbagcmzmg")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'disable-tests + (lambda _ + ;; FIXME: Determine why test fails + (substitute* "test/test_daemon.py" + (("test_detaches_process_context") + "skip_test_detaches_process_context"))))))) + (propagated-inputs + `(("python-docutils" ,python-docutils) + ("python-lockfile" ,python-lockfile) + ("python-setuptools" ,python-setuptools))) + (native-inputs + `(("python-unittest2" ,python-unittest2) + ("python-testtools" ,python-testtools) + ("python-testscenarios" ,python-testscenarios) + ("python-mock" ,python-mock) + ("python-docutils" ,python-docutils))) + (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 3= 143. + +This library provides a @code{DaemonContext} class that manages the follow= ing +important tasks for becoming a daemon process: +@enumerate +@item Detach the process into its own process group. +@item Set process environment appropriate for running inside a chroot. +@item Renounce suid and sgid privileges. +@item Close all open file descriptors. +@item Change the working directory, uid, gid, and umask. +@item Set appropriate signal handlers. +@item Open new file descriptors for stdin, stdout, and stderr. +@item Manage a specified PID lock file. +@item Register cleanup functions for at-exit processing. +@end enumerate") + (license (list license:asl2.0 license:gpl3+)))) + (define-public python-docutils (package (name "python-docutils") =2D-=20 2.20.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCXFv9fQAKCRDcUY/If5cW qh7GAQD2XluCmztriX1YGP+CimnchEieSbB2lAPdtx+TCOtZVwD/bVqoxY1Wkaw8 /kxNKsgOMt9bl89kWmB3hRNPWpsOKwU= =tJDI -----END PGP SIGNATURE----- --=-=-=-- ------------=_1549878542-10467-1--