From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EOh7NmzPx14JYQAA0tVLHw (envelope-from ) for ; Fri, 22 May 2020 13:11:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CPQwMmzPx14dRAAAbx9fmQ (envelope-from ) for ; Fri, 22 May 2020 13:11:08 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 59AAA940418 for ; Fri, 22 May 2020 13:11:08 +0000 (UTC) Received: from localhost ([::1]:34516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jc7S6-0001lW-Qx for larch@yhetil.org; Fri, 22 May 2020 09:11:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jc7S3-0001lB-08 for guix-patches@gnu.org; Fri, 22 May 2020 09:11:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46878) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jc7S2-0003LQ-N4 for guix-patches@gnu.org; Fri, 22 May 2020 09:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jc7S2-0007jV-I2 for guix-patches@gnu.org; Fri, 22 May 2020 09:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41455] [PATCH] gnu: Add python-daemux Resent-From: Edouard Klein Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 22 May 2020 13:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 41455 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41455@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159015302429679 (code B ref -1); Fri, 22 May 2020 13:11:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 May 2020 13:10:24 +0000 Received: from localhost ([127.0.0.1]:58424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jc7RP-0007ic-TG for submit@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 ) id 1jc7RO-0007iU-KR for submit@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 ) id 1jc7RO-0001Sm-FO for guix-patches@gnu.org; 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 ) id 1jc7RN-0002zw-Ab for guix-patches@gnu.org; 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@beaver-labs.com; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1590153017; s=zoho; d=beaver-labs.com; i=edk@beaver-labs.com; 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 Message-ID: <87d06wazez.fsf@alice.lan> 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@beaver-labs.com; 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.4 (--) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=beaver-labs.com header.s=zoho header.b=e6OF//c0; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 1.99 X-TUID: rTh1rGSPE1Du * /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