From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:42033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1grl18-00066W-0U for guix-patches@gnu.org; Thu, 07 Feb 2019 09:51:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1grl16-0004iw-OD for guix-patches@gnu.org; Thu, 07 Feb 2019 09:51:05 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37402) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1grl14-0004hJ-Oo for guix-patches@gnu.org; Thu, 07 Feb 2019 09:51:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1grl14-0000wE-EK for guix-patches@gnu.org; Thu, 07 Feb 2019 09:51:02 -0500 Subject: [bug#34365] [PATCH] gnu: Add python-daemon. Resent-Message-ID: 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" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ricardo Wurmus Cc: 34365@debbugs.gnu.org --==-=-= 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----- --==-=-=--