From patchwork Wed Oct 28 13:29:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 24844 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7C50A27BBF2; Wed, 28 Oct 2020 13:30:16 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A6F2127BBF3 for ; Wed, 28 Oct 2020 13:30:14 +0000 (GMT) Received: from localhost ([::1]:40396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXlWn-00042m-Ox for patchwork@mira.cbaines.net; Wed, 28 Oct 2020 09:30:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45830) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXlWd-00042Y-85 for guix-patches@gnu.org; Wed, 28 Oct 2020 09:30:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36140) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXlWc-0008MD-V3 for guix-patches@gnu.org; Wed, 28 Oct 2020 09:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kXlWc-0005SO-Mn for guix-patches@gnu.org; Wed, 28 Oct 2020 09:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#44251] [PATCH v2] gnu: Add pwclient. References: <20201027094602.13503-1-mail@cbaines.net> In-Reply-To: <20201027094602.13503-1-mail@cbaines.net> Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 28 Oct 2020 13:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44251 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 44251@debbugs.gnu.org Received: via spool by 44251-submit@debbugs.gnu.org id=B44251.160389178320929 (code B ref 44251); Wed, 28 Oct 2020 13:30:02 +0000 Received: (at 44251) by debbugs.gnu.org; 28 Oct 2020 13:29:43 +0000 Received: from localhost ([127.0.0.1]:47686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXlWJ-0005RV-0T for submit@debbugs.gnu.org; Wed, 28 Oct 2020 09:29:43 -0400 Received: from mira.cbaines.net ([212.71.252.8]:60170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kXlWG-0005RK-P4 for 44251@debbugs.gnu.org; Wed, 28 Oct 2020 09:29:41 -0400 Received: from localhost (188.28.126.167.threembb.co.uk [188.28.126.167]) by mira.cbaines.net (Postfix) with ESMTPSA id E685B27BBF2 for <44251@debbugs.gnu.org>; Wed, 28 Oct 2020 13:29:39 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id c7f050e4 for <44251@debbugs.gnu.org>; Wed, 28 Oct 2020 13:29:37 +0000 (UTC) From: Christopher Baines Date: Wed, 28 Oct 2020 13:29:37 +0000 Message-Id: <20201028132937.9750-1-mail@cbaines.net> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/patchutils.scm (pwclient): New variable. --- gnu/packages/patchutils.scm | 54 +++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/patchutils.scm b/gnu/packages/patchutils.scm index 12dd472c68..da0f13a01e 100644 --- a/gnu/packages/patchutils.scm +++ b/gnu/packages/patchutils.scm @@ -468,3 +468,57 @@ patches, and displays the patches along with comments and state information. Users can login allowing them to change the state of patches.") (home-page "http://jk.ozlabs.org/projects/patchwork/") (license gpl2+))) + +(define-public pwclient + (package + (name "pwclient") + (version "1.3.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/getpatchwork/pwclient") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1xckwvcqklzpyh3xs4k2zm40ifp0q5fdkj2vmgb8vhfvl1ivs6jv")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-requirements + (lambda _ + (substitute* "test-requirements.txt" + ;; The pytest requirement is unnecessarily strict + (("pytest>=3.0,<5.0;") + "pytest>=3.0,<6.0;")) + #t)) + (add-before 'build 'set-PBR_VERSION + (lambda _ + (setenv "PBR_VERSION" + ,version) + #t)) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest")) + #t)) + (add-after 'install 'install-man-page + (lambda* (#:key outputs #:allow-other-keys) + (install-file "man/pwclient.1" + (string-append + (assoc-ref outputs "out") + "/share/man/man1")) + #t))))) + (native-inputs + `(("python-pbr" ,python-pbr) + ("python-pytest" ,python-pytest) + ("python-pytest-cov" ,python-pytest-cov) + ("python-mock" ,python-mock))) + (home-page + "https://github.com/getpatchwork/pwclient") + (synopsis "Command-line client for the Patchwork patch tracking tool") + (description + "pwclient is a VCS-agnostic tool for interacting with Patchwork, the +web-based patch tracking system.") + (license gpl2+)))