GNU bug report logs - #41455
[PATCH] gnu: Add python-daemux

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Edouard Klein <edk@HIDDEN>; Keywords: patch; merged with #41208; dated Fri, 22 May 2020 13:11:02 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.
Merged 41208 41455. Request was from Marius Bakke <marius@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 41455 <at> debbugs.gnu.org:


Received: (at 41455) by debbugs.gnu.org; 25 May 2020 22:46:36 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 25 18:46:36 2020
Received: from localhost ([127.0.0.1]:42765 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jdLrf-0002xk-NA
	for submit <at> debbugs.gnu.org; Mon, 25 May 2020 18:46:35 -0400
Received: from eggs.gnu.org ([209.51.188.92]:35946)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <marius@HIDDEN>) id 1jdLrd-0002rF-Sc
 for 41455 <at> debbugs.gnu.org; Mon, 25 May 2020 18:46:34 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:59045)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <marius@HIDDEN>)
 id 1jdLrY-0005Oa-HO; Mon, 25 May 2020 18:46:28 -0400
Received: from ti0006q161-2604.bb.online.no ([84.202.68.75]:39862
 helo=localhost)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <marius@HIDDEN>)
 id 1jdLrX-0004al-Tc; Mon, 25 May 2020 18:46:28 -0400
From: Marius Bakke <marius@HIDDEN>
To: Edouard Klein <edk@HIDDEN>, 41455 <at> debbugs.gnu.org
Subject: Re: [bug#41455] [PATCH 2/2] gnu: Add python-daemux
In-Reply-To: <87v9kkick4.fsf@HIDDEN>
References: <87d06wazez.fsf@HIDDEN> <87v9kkick4.fsf@HIDDEN>
Date: Tue, 26 May 2020 00:46:26 +0200
Message-ID: <87mu5v63b1.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 41455
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Edouard Klein <edk@HIDDEN> writes:

> * gnu/packages/tmux.scm (python-daemux): New variable.

[...]
=20=20
> +(define-public python-daemux
> +  (package
> +    (name "python-daemux")
> +    (version "0.1.0")
> +    (source
> +     ;; We fetch from the Git repo because there are no tests in the PyPI
> +     ;; archive.
> +     (origin
> +       (method git-fetch)
> +       (uri (git-reference
> +             (url "https://github.com/edouardklein/daemux.git")
> +             (commit "58e30331d3cce08655cb5f55e94396568d484f9a")))

This upstream looks familiar...  Do you think upstream is willing to tag
a 0.1.0 release instead of using a "magic" commit identifier?  :-)

> +       (file-name (git-file-name name version))
> +       (sha256
> +        (base32 "0cb8v552f2hkwz6d3hwsmrz3gd28jikga3lcc3r1zlw8ra7804ph"))=
))
> +    (build-system python-build-system)
> +    (arguments
> +     `(#:phases (modify-phases %standard-phases
> +                  (replace 'check
> +                    (lambda _
> +                      (mkdir-p "tmptmux")
> +                      (setenv "TMUX_TMPDIR" (string-append (getcwd) "/tm=
ptmux"))
> +                      (invoke "tmux" "new-session" "-d")
> +                      (invoke "make" "test"))))))

Nice!  I guess 'tmux' needs to be a native-input if we don't propagate
it from libtmux.

> +    (propagated-inputs
> +     `(("python-libtmux" ,python-libtmux)))
> +    (native-inputs
> +     `(("python-coverage" ,python-coverage)
> +       ("python-sphinx" ,python-sphinx)))
> +    (home-page "https://github.com/edouardklein/daemux")
> +    (synopsis
> +     "Start, stop, restart and check daemons via tmux")

This line break is unnecessary.

Otherwise LGTM, thanks!

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7MSsIACgkQoqBt8qM6
VPpBWQf/XD7IHDAX9/S5rK/gZindrOGiapJyuYf39fMPkxWl7du31GrVaYKMt0RH
tCxeBLji9QrrB6ZK6s1tTsClbRUv8iQzt3MWlZvT+eUFCUENzaS/+6CYM2SNiOyX
E/eYEQt38srnfBnzWcgbgkBW08SwCeYWF3YfexpoUHVKBKx+6Xw12eO8oiU8U2Bj
hWa6FHSsFZvrsfepmP2WpPcxaXkZabaKht3yhVLoe6dne0E+UB6t5fXCelx5ZXxJ
1HEhaXhTC4dFdYYpqZisJm8hVxMy6JN/0aPP8ePbUozqZx8dmIRfpE/c4rv8fvo6
hEl0A0DWz1+7OWAArK27LP5+wCMVfg==
=mD8c
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#41455; Package guix-patches. Full text available.

Message received at 41455 <at> debbugs.gnu.org:


Received: (at 41455) by debbugs.gnu.org; 25 May 2020 22:43:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 25 18:43:20 2020
Received: from localhost ([127.0.0.1]:42753 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jdLoW-0001JG-Bx
	for submit <at> debbugs.gnu.org; Mon, 25 May 2020 18:43:20 -0400
Received: from eggs.gnu.org ([209.51.188.92]:35552)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <marius@HIDDEN>) id 1jdLoV-0001J4-0U
 for 41455 <at> debbugs.gnu.org; Mon, 25 May 2020 18:43:19 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:59000)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <marius@HIDDEN>)
 id 1jdLoP-0004i5-JN; Mon, 25 May 2020 18:43:13 -0400
Received: from ti0006q161-2604.bb.online.no ([84.202.68.75]:39812
 helo=localhost)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <marius@HIDDEN>)
 id 1jdLoO-0004IK-M3; Mon, 25 May 2020 18:43:13 -0400
From: Marius Bakke <marius@HIDDEN>
To: Edouard Klein <edk@HIDDEN>, 41455 <at> debbugs.gnu.org
Subject: Re: [bug#41455] [PATCH 1/2] gnu: Add python-libtmux
In-Reply-To: <87y2pgiclc.fsf@HIDDEN>
References: <87d06wazez.fsf@HIDDEN> <87y2pgiclc.fsf@HIDDEN>
Date: Tue, 26 May 2020 00:43:10 +0200
Message-ID: <87pnar63gh.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 41455
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Edouard Klein <edk@HIDDEN> writes:

> * gnu/packages/check.scm (python-pytest-4): New variable.
> * gnu/packages/tmux.scm (python-libtmux): New variable.

Thanks!  Can you submit these as two separate patches?

> +    (native-inputs
> +     `(("python-setuptools-scm" ,python-setuptools-scm)
> +       ("git" ,git)))
> +    (arguments `(#:phases
> +                 (modify-phases %standard-phases
> +                   (add-after 'unpack 'git-tag
> +                     (lambda _
> +                       ;; setuptools-scm needs to know the version
> +                       (invoke "git" "init")
> +                       (invoke "git" "add" ".")
> +                       (invoke "git" "config" "user.name" "John Doe")
> +                       (invoke "git" "config" "user.email" "nobody@examp=
le.com")
> +                       (invoke "git" "commit" "-m" "dummy commit")
> +                       (invoke "git" "tag" ,version))))))

This is weird, we haven't needed this before.  Is there a way to avoid
the dependency on git here?  In the worst case maybe we can create
".git/refs/tags/,version" manually?  :-/

Also, please make this inherit from pytest instead of duplicating all
the fields.

[...]
=20=20
> +(define-public python-libtmux
> +  (package
> +    (name "python-libtmux")
> +    (version "0.8.2")
> +    (source
> +     (origin
> +       (method git-fetch)
> +       ;; Pypi source tarball does not include tests
> +       (uri (git-reference
> +             (url "https://github.com/tmux-python/libtmux.git")
> +             (commit (string-append "v" version))))
> +       (file-name "python-libtmux")
> +       (sha256
> +        (base32
> +         "1akjv6aqpc690c4l2cjh0fxbpxxg63sfjggapfjjjaqmcl38g1dz"))))
> +    (build-system python-build-system)
> +    (propagated-inputs
> +     `(("python-pytest-4" ,python-pytest-4)

Do you know if pytest 4 is really needed?  Often Python packages pin a
specific version for no good reason, and one can simply substitute "=3D=3D"
with ">=3D" in setup.py and it's all good.

> +       ("tmux" ,tmux)

Even though this is useless without tmux, I'm not sure if we should
propagate it.  Some users might have custom versions of tmux, but would
still want to use this library.  WDYT?

> +       ("procps" ,procps)))  ;; Tests need top

                                ^ only one semicolon for margin comments
                                ;typically without a space, like this

> +    (arguments
> +     `(#:phases
> +       (modify-phases %standard-phases
> +         (replace 'check
> +           (lambda _
> +             ;; Extend PYTHONPATH so the built package will be found.
> +             (setenv "PYTHONPATH"
> +                     (string-append (getcwd) "/build/lib:"
> +                                    (getenv "PYTHONPATH")))
> +             ;; Skip tests that I suspect fail because of a change
> +             ;; in behavior in tmux 3 from tmux 2
> +             ;; https://github.com/tmux-python/libtmux/issues/281
> +             (invoke "pytest" "-vv" "-k"
> +                     (string-append "not test_show_option_unknown "
> +                                    "and not test_show_window_option_unk=
nown"))
> +             #t)))))
> +    (home-page
> +     "https://github.com/tmux-python/libtmux")

This line break is unnecessary.

Otherwise looks good.  Can you send updated patches?

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7MSf4ACgkQoqBt8qM6
VPopWAf8C5GSdQz00GcRPaO/WqO01W+WXLVmiAh2j//0UTgAq7uZraXOaRc4Im3v
eLMzPqBbeyyZ6WJUKFftK+o0Q7DzjKoNRWWECFsjajCTdgRqUWwyIKTJxz4rDsRR
BnjSTOFy+/TkSvT+bZnztFNRVR49JSFQhQaP7HTUUj3LKmIopFfNWrkJuYmlJDjB
9pyI+d6S1QShUmIMTlrc3O/B6uO6IEY1LNqCFZXGe8BVcDcQZ6+A42bKVOJk/uYC
5ymB3x17lofMkku4v8ZAc9T/snzzkWeMl0B+T1P7b9fDEetrbxND/k0tq/CW3ifb
mewsa9leFldUA+7Ea3p3vusD5flKeA==
=LZC0
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#41455; Package guix-patches. Full text available.

Message received at 41455 <at> debbugs.gnu.org:


Received: (at 41455) by debbugs.gnu.org; 25 May 2020 09:33:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 25 05:33:41 2020
Received: from localhost ([127.0.0.1]:39794 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jd9UL-0006YU-8M
	for submit <at> debbugs.gnu.org; Mon, 25 May 2020 05:33:41 -0400
Received: from sender4-op-o11.zoho.com ([136.143.188.11]:17143)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <edk@HIDDEN>) id 1jd9UI-0006YM-US
 for 41455 <at> debbugs.gnu.org; Mon, 25 May 2020 05:33:39 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1590399216; cv=none; 
 d=zohomail.com; s=zohoarc; 
 b=Fckr6wWvgf3LY4OTszcRLfYRMjNq+ymgmDRGBOqBGQlf/9FrbyzU/DSIrLHP0Hk9qzIV9Bf5HB+RsJ+uX6fxTaFDawijYsakz2pziifDBT1yUVzo7ktSpMPQXJfgS/59NRhds+K65jFu603pvYeguaNjubf/LZROz+jid/M40BQ=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc; 
 t=1590399216; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To; 
 bh=ijOQHHFgiG3LXW3NnlwI5MG0YscP6yirEwMbYfahT58=; 
 b=IoR5OB6vEMXL35rh5ghhqva2awu+FHzOEjueH4BTcwbcicw10Eu8GWfJkvQDpzJzqa/1mpbukGbdgMiS+k0icO+E10UaYJvDBsfGuzfRq/tTtG80RMzyJW2xTvccInhUdfSUndkQOPBjrgoyJajZs3QXoiZ9yaNEzXk763T+UoQ=
ARC-Authentication-Results: i=1; mx.zohomail.com;
 dkim=pass  header.i=beaver-labs.com;
 spf=pass  smtp.mailfrom=edk@HIDDEN;
 dmarc=pass header.from=<edk@HIDDEN> header.from=<edk@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1590399216; 
 s=zoho; d=beaver-labs.com; i=edk@HIDDEN;
 h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type;
 bh=ijOQHHFgiG3LXW3NnlwI5MG0YscP6yirEwMbYfahT58=;
 b=ABr3H/NJgiBP9sCI2xc9J0IdviKQo/Gx8vPPWCQVIS8k6Ctb0G7lcjeGqWpHTyP8
 IHLpPrN+XE8nY04qJKB4eKRKRMopSQ9cN+q0lJiIbVURz9XEgNruHNrYvI03cQEltg8
 5HkP5RAlachsEfJvh2CUb0QN5WLcn7YpECHnKPF0=
Received: from alice.lan (lfbn-idf1-1-1299-119.w90-79.abo.wanadoo.fr
 [90.79.23.119]) by mx.zohomail.com
 with SMTPS id 1590399215332456.54769454801556;
 Mon, 25 May 2020 02:33:35 -0700 (PDT)
User-agent: mu4e 1.4.6; emacs 26.3
From: Edouard Klein <edk@HIDDEN>
To: 41455 <at> debbugs.gnu.org
Subject: [PATCH 2/2] gnu: Add python-daemux
Message-ID: <87v9kkick4.fsf@HIDDEN>
Date: Mon, 25 May 2020 11:33:31 +0200
MIME-Version: 1.0
Content-Type: text/plain
X-ZohoMailClient: External
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 41455
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


* gnu/packages/tmux.scm (python-daemux): New variable.
---
 gnu/packages/tmux.scm | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

diff --git a/gnu/packages/tmux.scm b/gnu/packages/tmux.scm
index c4dd963b53..106a6a3f5f 100644
--- a/gnu/packages/tmux.scm
+++ b/gnu/packages/tmux.scm
@@ -35,6 +35,7 @@
   #:use-module (gnu packages)
   #:use-module (gnu packages bash)
   #:use-module (gnu packages check)
+  #:use-module (gnu packages sphinx)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages libevent)
   #:use-module (gnu packages ncurses))
@@ -186,6 +187,44 @@ It builds upon tmux's target and formats to create an object mapping to traverse
  inspect and interact with live tmux sessions.")
     (license license:expat)))
 
+(define-public python-daemux
+  (package
+    (name "python-daemux")
+    (version "0.1.0")
+    (source
+     ;; We fetch from the Git repo because there are no tests in the PyPI
+     ;; archive.
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/edouardklein/daemux.git")
+             (commit "58e30331d3cce08655cb5f55e94396568d484f9a")))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0cb8v552f2hkwz6d3hwsmrz3gd28jikga3lcc3r1zlw8ra7804ph"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda _
+                      (mkdir-p "tmptmux")
+                      (setenv "TMUX_TMPDIR" (string-append (getcwd) "/tmptmux"))
+                      (invoke "tmux" "new-session" "-d")
+                      (invoke "make" "test"))))))
+    (propagated-inputs
+     `(("python-libtmux" ,python-libtmux)))
+    (native-inputs
+     `(("python-coverage" ,python-coverage)
+       ("python-sphinx" ,python-sphinx)))
+    (home-page "https://github.com/edouardklein/daemux")
+    (synopsis
+     "Start, stop, restart and check daemons via tmux")
+    (description
+     "Daemux lets you run daemons in a tmux pane.  Users can launch long-running
+background tasks, and check these tasks' health by hand, relaunch them, etc. by attaching
+to the corresponding pane in tmux.")
+    (license license:agpl3+)))
+
 (define-public tmux-xpanes
   (package
     (name "tmux-xpanes")
-- 
2.26.2




Information forwarded to guix-patches@HIDDEN:
bug#41455; Package guix-patches. Full text available.

Message received at 41455 <at> debbugs.gnu.org:


Received: (at 41455) by debbugs.gnu.org; 25 May 2020 09:33:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 25 05:33:04 2020
Received: from localhost ([127.0.0.1]:39790 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jd9Td-0006X8-Sm
	for submit <at> debbugs.gnu.org; Mon, 25 May 2020 05:33:04 -0400
Received: from sender4-op-o11.zoho.com ([136.143.188.11]:17141)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <edk@HIDDEN>) id 1jd9Tc-0006Wz-0d
 for 41455 <at> debbugs.gnu.org; Mon, 25 May 2020 05:32:56 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1590399173; cv=none; 
 d=zohomail.com; s=zohoarc; 
 b=ZcZCbD2YYwTICCyhJUNriyH06yB9eUUA6S2ckYAganTBy3xAjyd3H2XxFJPzKI//D7b7Xrf88gxj683R68EZOWyEqUFdCCTIm/ittrfXVN0yOIn752xE4z88KKytTHVEFU9c/J1qdTBXJZ4d3xfv2UysQ5prXaOiWFEoEoq34ow=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc; t=1590399173;
 h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To;
 bh=GNTSd1DXavmBjfhMxdEuq4+bKVZkF9P/Kdxd7e9XSH8=; 
 b=mz0KiTlMzp09nA2S62ofnvn0Y++/VErsh+7HyzVItbsNhnPRi2D/s+Bt1v5uJXJE+miXZrZk1AWXU9VyOI5iebVaIkOcmTRY4TElQEtKQGIB0RuAsEW/90SM4ekVr1v9ge0MR5046UqQl9xtuN7I4rh+dcmdcW7phzAVi5g6n5U=
ARC-Authentication-Results: i=1; mx.zohomail.com;
 dkim=pass  header.i=beaver-labs.com;
 spf=pass  smtp.mailfrom=edk@HIDDEN;
 dmarc=pass header.from=<edk@HIDDEN> header.from=<edk@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1590399173; 
 s=zoho; d=beaver-labs.com; i=edk@HIDDEN;
 h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type:Content-Transfer-Encoding;
 bh=GNTSd1DXavmBjfhMxdEuq4+bKVZkF9P/Kdxd7e9XSH8=;
 b=TJW8ifM/K3/UvpiYHA0TYEYlmbzrodCwvQB6sou4vST5IQarW2vPIsVVS2ER+6Ya
 2WLYQebWGppkyTAnF4jFFbEC8C7gBC+aoPV9uh0y9quobG0ihwq3cLqqcydKDvLmMm8
 kRb+PsJ7Hyop+hgKY27BGP0j5BOmGFdtZikN8yVo=
Received: from alice.lan (lfbn-idf1-1-1299-119.w90-79.abo.wanadoo.fr
 [90.79.23.119]) by mx.zohomail.com
 with SMTPS id 1590399171278814.3530029430145;
 Mon, 25 May 2020 02:32:51 -0700 (PDT)
User-agent: mu4e 1.4.6; emacs 26.3
From: Edouard Klein <edk@HIDDEN>
To: 41455 <at> debbugs.gnu.org
Subject: [PATCH 1/2] gnu: Add python-libtmux
Message-ID: <87y2pgiclc.fsf@HIDDEN>
Date: Mon, 25 May 2020 11:32:47 +0200
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-Debbugs-Envelope-To: 41455
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


* gnu/packages/check.scm (python-pytest-4): New variable.
* gnu/packages/tmux.scm (python-libtmux): New variable.
---
 gnu/packages/check.scm | 49 ++++++++++++++++++++++++++++++++++++++++++
 gnu/packages/tmux.scm  | 48 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 97 insertions(+)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 7d7fd189bc..5d3e44a16d 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -33,6 +33,7 @@
 ;;; Copyright =C2=A9 2020 Lars-Dominik Braun <ldb@HIDDEN>
 ;;; Copyright =C2=A9 2020 Brice Waegeneire <brice@HIDDEN>
 ;;; Copyright =C2=A9 2020 Josh Marshall <joshua.r.marshall.1991@HIDDEN>
+;;; Copyright =C2=A9 2020 Edouard Klein <edk@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -66,6 +67,7 @@
   #:use-module (gnu packages python)
   #:use-module (gnu packages python-web)
   #:use-module (gnu packages python-xyz)
+  #:use-module (gnu packages version-control)
   #:use-module (gnu packages time)
   #:use-module (gnu packages xml)
   #:use-module (guix utils)
@@ -819,6 +821,53 @@ and many external plugins.")
     (license license:expat)
     (properties `((python2-variant . ,(delay python2-pytest))))))
=20
+(define-public python-pytest-4
+  (package
+    (name "python-pytest-4")
+    (version "4.5.0")
+    (source
+     (origin
+       (method git-fetch)
+       ;; Pypi source tarball does not include tests
+       (uri (git-reference
+             (url "https://github.com/pytest-dev/pytest.git")
+             (commit version)))
+       (file-name "python-pytest-4")
+       (sha256
+        (base32
+         "0igxfasjqabkzlb81vxqr58pfsdwjx4zzd1nc1b48wn6xnkkllhk"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-atomicwrites" ,python-atomicwrites)
+       ("python-attrs" ,python-attrs)
+       ("python-attrs" ,python-attrs)
+       ("python-more-itertools" ,python-more-itertools)
+       ("python-pluggy" ,python-pluggy)
+       ("python-six" ,python-six)
+       ("python-py" ,python-py)
+       ("python-wcwidth" ,python-wcwidth)))
+    (native-inputs
+     `(("python-setuptools-scm" ,python-setuptools-scm)
+       ("git" ,git)))
+    (arguments `(#:phases
+                 (modify-phases %standard-phases
+                   (add-after 'unpack 'git-tag
+                     (lambda _
+                       ;; setuptools-scm needs to know the version
+                       (invoke "git" "init")
+                       (invoke "git" "add" ".")
+                       (invoke "git" "config" "user.name" "John Doe")
+                       (invoke "git" "config" "user.email" "nobody@example=
.com")
+                       (invoke "git" "commit" "-m" "dummy commit")
+                       (invoke "git" "tag" ,version))))))
+    (home-page "https://docs.pytest.org/en/latest/")
+    (synopsis "Python testing library")
+    (description
+     "Pytest is a testing tool that provides auto-discovery of test modules
+and functions, detailed info on failing assert statements, modular fixture=
s,
+and many external plugins.")
+    (license license:expat)))
+
 ;; Pytest 4.x are the last versions that support Python 2.
 (define-public python2-pytest
   (package
diff --git a/gnu/packages/tmux.scm b/gnu/packages/tmux.scm
index 8b54849b18..c4dd963b53 100644
--- a/gnu/packages/tmux.scm
+++ b/gnu/packages/tmux.scm
@@ -7,6 +7,7 @@
 ;;; Copyright =C2=A9 2019 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright =C2=A9 2019 Oleg Pykhalov <go.wigust@HIDDEN>
 ;;; Copyright =C2=A9 2020 Brice Waegeneire <brice@HIDDEN>
+;;; Copyright =C2=A9 2020 Edouard Klein <edk@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -30,8 +31,11 @@
   #:use-module (guix git-download)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system trivial)
+  #:use-module (guix build-system python)
   #:use-module (gnu packages)
   #:use-module (gnu packages bash)
+  #:use-module (gnu packages check)
+  #:use-module (gnu packages linux)
   #:use-module (gnu packages libevent)
   #:use-module (gnu packages ncurses))
=20
@@ -138,6 +142,50 @@ command and helper commands provided by tmuxifier to m=
anage Tmux sessions and
 windows.")
     (license license:expat)))
=20
+(define-public python-libtmux
+  (package
+    (name "python-libtmux")
+    (version "0.8.2")
+    (source
+     (origin
+       (method git-fetch)
+       ;; Pypi source tarball does not include tests
+       (uri (git-reference
+             (url "https://github.com/tmux-python/libtmux.git")
+             (commit (string-append "v" version))))
+       (file-name "python-libtmux")
+       (sha256
+        (base32
+         "1akjv6aqpc690c4l2cjh0fxbpxxg63sfjggapfjjjaqmcl38g1dz"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-pytest-4" ,python-pytest-4)
+       ("tmux" ,tmux)
+       ("procps" ,procps)))  ;; Tests need top
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             ;; Extend PYTHONPATH so the built package will be found.
+             (setenv "PYTHONPATH"
+                     (string-append (getcwd) "/build/lib:"
+                                    (getenv "PYTHONPATH")))
+             ;; Skip tests that I suspect fail because of a change
+             ;; in behavior in tmux 3 from tmux 2
+             ;; https://github.com/tmux-python/libtmux/issues/281
+             (invoke "pytest" "-vv" "-k"
+                     (string-append "not test_show_option_unknown "
+                                    "and not test_show_window_option_unkno=
wn"))
+             #t)))))
+    (home-page
+     "https://github.com/tmux-python/libtmux")
+    (synopsis "Scripting library / orm for tmux")
+    (description "Libtmux is the tool behind tmuxp, a tmux workspace manag=
er in python.
+It builds upon tmux's target and formats to create an object mapping to tr=
averse,
+ inspect and interact with live tmux sessions.")
+    (license license:expat)))
+
 (define-public tmux-xpanes
   (package
     (name "tmux-xpanes")
--=20
2.26.2




Information forwarded to guix-patches@HIDDEN:
bug#41455; Package guix-patches. Full text available.

Message received at 41455 <at> debbugs.gnu.org:


Received: (at 41455) by debbugs.gnu.org; 25 May 2020 09:31:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 25 05:31:48 2020
Received: from localhost ([127.0.0.1]:39783 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jd9SW-0006VD-8A
	for submit <at> debbugs.gnu.org; Mon, 25 May 2020 05:31:48 -0400
Received: from sender4-op-o11.zoho.com ([136.143.188.11]:17131)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <edk@HIDDEN>) id 1jd9SU-0006V3-Tw
 for 41455 <at> debbugs.gnu.org; Mon, 25 May 2020 05:31:47 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1590399104; cv=none; 
 d=zohomail.com; s=zohoarc; 
 b=jUqDIpNpXd+Bc0lst73vC93pKKQG+Ejl/cPyMl48i44mO+dkJZLMlllYLGn2ES3eGhCvF4LXxO1rsHif9D6XIbLxffG5pFDaYuqougcZVvh5ZRD8BLZ+f7XC7JQ+YIwig1yOifbpZpkXDMHitG4v+OWvFIENk9+gsoUE0g6Z7J8=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc; t=1590399104;
 h=Content-Type:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To;
 bh=UE6KU2B4jjwYpWh2XUW3ETJuMpSA08wR24aq8JoCm5w=; 
 b=KWiqIahMUqmOW5sRB53ZfMsRezgD0bXjtv9QrXUProQCdcHKMBsuR/k+VQHP8KfkpyTVHT8nGFxy1C5uEqIl94gxDV39zX0gek/aGni3RrNF5KvkIG/hHfCViFsuzKOwwXuuWRbCNvOl3Q4KMlDIX1+EhKA0oBhSXSfLwlWbaCY=
ARC-Authentication-Results: i=1; mx.zohomail.com;
 dkim=pass  header.i=beaver-labs.com;
 spf=pass  smtp.mailfrom=edk@HIDDEN;
 dmarc=pass header.from=<edk@HIDDEN> header.from=<edk@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1590399104; 
 s=zoho; d=beaver-labs.com; i=edk@HIDDEN;
 h=References:From:To:Subject:In-reply-to:Message-ID:Date:MIME-Version:Content-Type;
 bh=UE6KU2B4jjwYpWh2XUW3ETJuMpSA08wR24aq8JoCm5w=;
 b=ju2LQ918phvZAFH+Agqq0IdqgRsDf1sjZYJ8EDZPvIRx7EjfLxxOdwa7wR/4wy/C
 +dKqaEREuqJu8HnHXe4g8RGEnIYPEitpOQgUnpi4+nIJbiBJaWT53B11p17Sxf4oFnQ
 ZraaeukRJ9DwvyAbE2msBhCcxTxUeA3RqbSUsgO0=
Received: from alice.lan (lfbn-idf1-1-1299-119.w90-79.abo.wanadoo.fr
 [90.79.23.119]) by mx.zohomail.com
 with SMTPS id 1590399100371637.1847870430613;
 Mon, 25 May 2020 02:31:40 -0700 (PDT)
References: <87d06wazez.fsf@HIDDEN> <87r1va7an9.fsf@HIDDEN>
User-agent: mu4e 1.4.6; emacs 26.3
From: Edouard Klein <edk@HIDDEN>
To: 41455 <at> debbugs.gnu.org
Subject: Re: [bug#41455] [PATCH] gnu: Add python-daemux
In-reply-to: <87r1va7an9.fsf@HIDDEN>
Message-ID: <871rn8jr7y.fsf@HIDDEN>
Date: Mon, 25 May 2020 11:31:29 +0200
MIME-Version: 1.0
Content-Type: text/plain
X-ZohoMailClient: External
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 41455
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi !

Thank you for reviewing the patches.

Marius Bakke writes:

> Edouard Klein <edk@HIDDEN> writes:
>
>> * /gnu/packages/python-xyz.scm (python-daemux): New variable
>
> Thanks!  The package LGTM but already does not apply because other
> packages have been appended to python-xyz.scm.  To reduce change of
> merge conflicts, I recommend adding packages somewhere "in the
> middle".

Thanks for the tip :)

>
> However, I wonder if this and python-libtmux are better suited in
> tmux.scm.  WDYT?

I have no strong feelings one way or the other, but I slightly lean
on the side of tmux.scm. I'll send two patches for python-libtmux and
python-daemux from the current master, in tmux.scm.

>
> In any case can you rebase this patch?  Thanks in advance!





Information forwarded to guix-patches@HIDDEN:
bug#41455; Package guix-patches. Full text available.

Message received at 41455 <at> debbugs.gnu.org:


Received: (at 41455) by debbugs.gnu.org; 23 May 2020 18:45:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 23 14:45:56 2020
Received: from localhost ([127.0.0.1]:35615 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jcZ9g-0008Lo-Ia
	for submit <at> debbugs.gnu.org; Sat, 23 May 2020 14:45:56 -0400
Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:47661)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mbakke@HIDDEN>) id 1jcZ9f-0008Lb-5J
 for 41455 <at> debbugs.gnu.org; Sat, 23 May 2020 14:45:55 -0400
Received: from compute4.internal (compute4.nyi.internal [10.202.2.44])
 by mailout.west.internal (Postfix) with ESMTP id 6C4AD746;
 Sat, 23 May 2020 14:45:49 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute4.internal (MEProxy); Sat, 23 May 2020 14:45:49 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h=
 from:to:subject:in-reply-to:references:date:message-id
 :mime-version:content-type; s=fm3; bh=GDeuR7aDaxJpUhCWN4u5pSvFc0
 mQCeuvMEJy0stuZvA=; b=VbY71rYVi1bJM4WgSBTrXy0+0vS+mtjVeT/WFXod+8
 nnwMCd70KSX6NUT/19BZHQibcPu3qNDaGRUn4Flq0o11y4SkjqEwZXBvXRiASPEE
 VPF67HmxrD9EKkcz2mouwJfYkgIO2RwfelWUBSfhZfe8xptxnLhHwlv9EsYk48QT
 b8HZR33I6VOR5uU6eO8u+UAW+5pP5BEui/ze7Skmj3pRJtMYOSoXdC3eIR27luzL
 9wTDayLM3VulItk97JajtwB2eA0gsJ9XQkUbwrsXZfyVJq0iaLoFvImjIqFtYuXj
 INeDdojtQ/7+EIlorlD9zDw5NpfFwunwX9drjaTe0veA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=content-type:date:from:in-reply-to
 :message-id:mime-version:references:subject:to:x-me-proxy
 :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=GDeuR7
 aDaxJpUhCWN4u5pSvFc0mQCeuvMEJy0stuZvA=; b=wvij8gDr6Kgi6XyAOBc0gI
 KC8uSiItdlzqvpj9jJ+BnhxI1x0nTVTTNTpn+NtYjiTjfagGC87DZ9CjCd9bDJnX
 34MJ3ToScl6Ne4lWv612Fww+oFRb6mWUsHqiIXJMg+m/vCkUdlID1kwCZ4IlI2t8
 Y1hzJD/6ytdrHhglXc10U7ePFH5COECmogVTsspT/BZPU3nKiKd1QNP7jfgzsO3t
 i9uLKHabTSo+LA3NKCaMg5k3aMh+z/nky77WtJX1XFcn2ggYXI8st9cai5p7j0os
 PIMMXq4DreEhPGhuPMCTbJ944XcnNTesqd/HiUi1yzcdhM1pMe5firifcEZ6oH2Q
 ==
X-ME-Sender: <xms:XG_JXkrK7syBQQDDnTRotgXzZDEUw4lVRgh0_BL4iY_2718cRjtlIA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudduhedguddvlecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpefhvffujghffgffkfggtgesghdtreertdertdenucfhrhhomhepofgrrhhi
 uhhsuceurghkkhgvuceomhgsrghkkhgvsehfrghsthhmrghilhdrtghomheqnecuggftrf
 grthhtvghrnhephfehieehteduleetudfgjeefheehfedufeffuddukeevueegteetffdu
 teetudejnecuffhomhgrihhnpehstghmrdhtohenucfkphepkeegrddvtddvrdeikedrje
 ehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgs
 rghkkhgvsehfrghsthhmrghilhdrtghomh
X-ME-Proxy: <xmx:XG_JXqq5mLth1WH182gyC6BnAalOIERaGkYgRA6hU0G_GBkZiC2BMQ>
 <xmx:XG_JXpMh7qJzCMRRaGZhlmOf98kbEjT9Q3cTteDDwJDmQ1PL6AvfEg>
 <xmx:XG_JXr7J9QPrrrVy3fx86-0wzYj-qQ9SMYv2qv0C0hhS9n7pE4EDow>
 <xmx:XW_JXlF0bnnW6ws_V6tP0BvXkVPIw2ZOsNwYbZmpqIP2mkp3Kjt_rw>
Received: from localhost (ti0006q161-2604.bb.online.no [84.202.68.75])
 by mail.messagingengine.com (Postfix) with ESMTPA id 79FBF328005A;
 Sat, 23 May 2020 14:45:48 -0400 (EDT)
From: Marius Bakke <mbakke@HIDDEN>
To: Edouard Klein <edk@HIDDEN>, 41455 <at> debbugs.gnu.org
Subject: Re: [bug#41455] [PATCH] gnu: Add python-daemux
In-Reply-To: <87d06wazez.fsf@HIDDEN>
References: <87d06wazez.fsf@HIDDEN>
User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3
 (x86_64-pc-linux-gnu)
Date: Sat, 23 May 2020 20:45:46 +0200
Message-ID: <87r1va7an9.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 41455
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

--=-=-=
Content-Type: text/plain

Edouard Klein <edk@HIDDEN> writes:

> * /gnu/packages/python-xyz.scm (python-daemux): New variable

Thanks!  The package LGTM but already does not apply because other
packages have been appended to python-xyz.scm.  To reduce change of
merge conflicts, I recommend adding packages somewhere "in the middle".

However, I wonder if this and python-libtmux are better suited in
tmux.scm.  WDYT?

In any case can you rebase this patch?  Thanks in advance!

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7Jb1oACgkQoqBt8qM6
VPpVTwf/VTLKSWHeu2jeIxKUqyuR5vH6QDA4ly/6LE/qCPzI85NE7zspXnYMr/By
TlDXZBZ24oEoHd1AgMkYWvhIQ+RjrSGgkLLXIJQFAPj2FwXyz1DYeafTWd+q5XWT
ItQWwhlmHJwqoeA1UKDEGBuBqfzBsqG+Z88CsXfEcY7Q3AT7VLhxHrKCSm0JS12N
rFzwYj3NBg59kd+oten1JjxVisHmcg5vNUICpq4Ke5qPpiiiNu4OuDE4mxxSedZ/
ujMh2RpdU/xRpHp/0E1EQ+JYTNjaVxxA6CJ0xCPBAvHNvUmlEk/3Mc/8pLyV4SQF
Qty+Gjn33j9ya2nVI/htuoKEhfWrZQ==
=Aaq+
-----END PGP SIGNATURE-----
--=-=-=--




Information forwarded to guix-patches@HIDDEN:
bug#41455; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 22 May 2020 13:10:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 22 09:10:24 2020
Received: from localhost ([127.0.0.1]:58424 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jc7RP-0007ic-TG
	for submit <at> debbugs.gnu.org; Fri, 22 May 2020 09:10:24 -0400
Received: from lists.gnu.org ([209.51.188.17]:36788)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <edk@HIDDEN>) id 1jc7RO-0007iU-KR
 for submit <at> debbugs.gnu.org; Fri, 22 May 2020 09:10:22 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47126)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <edk@HIDDEN>)
 id 1jc7RO-0001Sm-FO
 for guix-patches@HIDDEN; Fri, 22 May 2020 09:10:22 -0400
Received: from sender4-op-o11.zoho.com ([136.143.188.11]:17153)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256)
 (Exim 4.90_1) (envelope-from <edk@HIDDEN>)
 id 1jc7RN-0002zw-Ab
 for guix-patches@HIDDEN; Fri, 22 May 2020 09:10:22 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1590153017; cv=none; 
 d=zohomail.com; s=zohoarc; 
 b=VGU3pYvSJzKcy6Wx3/izWu7l4ZPRyRH2bwfBEs20tCKRk9RCsMS9t9eoz21VyuwSraSKx4iTAPWRzLJF8kPV51MFfu6DF/UWq7CllC16ahZeR3FgFXMx6yqu1t+eE8hwvNlsA7TSQwGYSw68TE9wnXdJOuyRI8urFJ2mttm+AHw=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com;
 s=zohoarc; 
 t=1590153017; h=Content-Type:Date:From:MIME-Version:Message-ID:Subject:To; 
 bh=tVovLpRh+bszm/5ofwi32D5Wnf0gcQS9HKzJfvdwf8s=; 
 b=nJ+Iklr8kyeDcNWMzbIgRPUPlNWbVw+vIqU0NlE6nyNaTDurMyYawlxPDKomjW0TvGZiyAAT0U1TBQDQH6IpGVjC69nXdf8x7nKIZH5F3qLKOWYupV9TCpJdlvHEqkJJPX0Ohu08zbC3QDgMYG2XX2aKi8fH2+I6nTVpnOlKtxo=
ARC-Authentication-Results: i=1; mx.zohomail.com;
 dkim=pass  header.i=beaver-labs.com;
 spf=pass  smtp.mailfrom=edk@HIDDEN;
 dmarc=pass header.from=<edk@HIDDEN> header.from=<edk@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1590153017; 
 s=zoho; d=beaver-labs.com; i=edk@HIDDEN;
 h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type;
 bh=tVovLpRh+bszm/5ofwi32D5Wnf0gcQS9HKzJfvdwf8s=;
 b=e6OF//c01WNy6iEe0AOOQaTD4AuSZhjSxAjTCfPuiQzR62t5ED743igi2uZPg7Dd
 YfY9EUcCMs6aVBgga1XbD/zKZ5qWGkozL1wCk1weUzr4AC4XZKfWNUpd0Gg8GIVRjCb
 KXDEc8QAabSI1eQeEjxjB+gGAdOSdKQUKdhYRboo=
Received: from alice.lan (lfbn-idf1-1-1299-119.w90-79.abo.wanadoo.fr
 [90.79.23.119]) by mx.zohomail.com
 with SMTPS id 1590153015947740.1143573036379;
 Fri, 22 May 2020 06:10:15 -0700 (PDT)
User-agent: mu4e 1.4.6; emacs 26.3
From: Edouard Klein <edk@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: Add python-daemux
Message-ID: <87d06wazez.fsf@HIDDEN>
Date: Fri, 22 May 2020 15:10:12 +0200
MIME-Version: 1.0
Content-Type: text/plain
X-ZohoMailClient: External
Received-SPF: pass client-ip=136.143.188.11; envelope-from=edk@HIDDEN;
 helo=sender4-op-o11.zoho.com
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/22 09:10:19
X-ACL-Warn: Detected OS   = Linux 3.11 and newer [fuzzy]
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.4 (--)


* /gnu/packages/python-xyz.scm (python-daemux): New variable
---
 gnu/packages/python-xyz.scm | 38 +++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8118c6d867..1b32e7e2a8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20075,3 +20075,41 @@ It builds upon tmux's target and formats to create an object mapping to traverse
     "Questionary helps make the input prompts easy to read and answer for the user
 using multi-select lists, confirmations, free text prompts, completion, etc.")
   (license license:expat)))
+
+(define-public python-daemux
+  (package
+    (name "python-daemux")
+    (version "0.1.0")
+    (source
+     ;; We fetch from the Git repo because there are no tests in the PyPI
+     ;; archive.
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/edouardklein/daemux.git")
+             (commit "58e30331d3cce08655cb5f55e94396568d484f9a")))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0cb8v552f2hkwz6d3hwsmrz3gd28jikga3lcc3r1zlw8ra7804ph"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda _
+                      (mkdir-p "tmptmux")
+                      (setenv "TMUX_TMPDIR" (string-append (getcwd) "/tmptmux"))
+                      (invoke "tmux" "new-session" "-d")
+                      (invoke "make" "test"))))))
+    (propagated-inputs
+     `(("python-libtmux" ,python-libtmux)))
+    (native-inputs
+     `(("python-coverage" ,python-coverage)
+       ("python-sphinx" ,python-sphinx)))
+    (home-page "https://github.com/edouardklein/daemux")
+    (synopsis
+     "Start, stop, restart and check daemons via tmux")
+    (description
+     "Daemux lets you run daemons in a tmux pane.  Users can launch long-running
+background tasks, and check these tasks' health by hand, relaunch them, etc. by attaching
+to the corresponding pane in tmux.")
+    (license license:agpl3+)))
-- 
2.26.2




Acknowledgement sent to Edouard Klein <edk@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#41455; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 May 2020 23:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.