From patchwork Tue Mar 28 22:34:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rostislav Svoboda X-Patchwork-Id: 48781 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 06E7F1710F; Tue, 28 Mar 2023 23:35:21 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 165EE16F60 for ; Tue, 28 Mar 2023 23:35:17 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1phHuC-00031K-1r; Tue, 28 Mar 2023 18:35:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1phHuA-000316-Nb for guix-patches@gnu.org; Tue, 28 Mar 2023 18:35:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1phHuA-0003Dk-2Q for guix-patches@gnu.org; Tue, 28 Mar 2023 18:35:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1phHu9-0001b6-OK for guix-patches@gnu.org; Tue, 28 Mar 2023 18:35:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62123] [PATCH 3/4] gnu: Add emacs-pippel. Resent-From: Rostislav Svoboda Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 28 Mar 2023 22:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62123 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Nicolas Goaziou Cc: 62123@debbugs.gnu.org Received: via spool by 62123-submit@debbugs.gnu.org id=B62123.16800428986128 (code B ref 62123); Tue, 28 Mar 2023 22:35:01 +0000 Received: (at 62123) by debbugs.gnu.org; 28 Mar 2023 22:34:58 +0000 Received: from localhost ([127.0.0.1]:50844 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phHu5-0001al-UA for submit@debbugs.gnu.org; Tue, 28 Mar 2023 18:34:58 -0400 Received: from mail-lf1-f43.google.com ([209.85.167.43]:39688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phHu4-0001aY-0g for 62123@debbugs.gnu.org; Tue, 28 Mar 2023 18:34:56 -0400 Received: by mail-lf1-f43.google.com with SMTP id h25so17761191lfv.6 for <62123@debbugs.gnu.org>; Tue, 28 Mar 2023 15:34:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680042890; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/XazOdwHJFC2Ynu2KRXafsb7ev1LsXcIsCxXPngSAXk=; b=Lo2BKiNxX/t/92/BfngwsYOfc5MpII6E8eRiUdEiP4TB37+P25OAq9F8WpsWYy80ZR +7vk7cLNFAXpp8LpenAiHVnC+TOlrU/FML0n7ReibDjgAYGywI66ZSFtzfSRuXsX7MZM E/Q+5CfzlSppFQR+DdQJeBngMjTFXpUTAvqZUpKr1fxlVFcxkgfXXm2hU3Dg747Y8xSZ T9bfyu6Gi5+dGL/GfrbO13nrmNi19AUd08qZtYdohJ+y/+qzm2J0fPJLAkuMtokVCg/s tpaJx8YwI+up7Ghp6CVFqFTCkOQ9tR/Hw1tyE5yDUHPPsMX6Amtg/ioi5Oyzaoipd7+k bW1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680042890; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/XazOdwHJFC2Ynu2KRXafsb7ev1LsXcIsCxXPngSAXk=; b=zgbwg5Rxaxtrmu7m2d/Rnqi5Nqb7bhQh6eCluQagAhXIETrMx8D/wjM1/VUyzR52K/ JAAh7Waxpu8YFRIUFRJZT0za+mZxKmIgYJbu4XSNdMjbThJY3IYTjIsxVNNqVLyn1Bx/ tMWILNjwrdSD8XT0DIkDyjWIGX9rtZkpyq8ypANvTMXoYTjBOUG6L2DHswBTlVXR5pmh PquPpmUd+W2FhzZKgJK9JD6CgjxhDt//ZtxgQgfOssIUTxjmpmVzlSx7yeublvJk418b BHwOqwUeMu6ybB3rzMuX8SavhbeT/tE4l7KMQW60TCYlxnL6+LbU3rXUD3eEZ0AHG0xc tyww== X-Gm-Message-State: AAQBX9dec6sTBMNnjXqSp8hE1jCtV0CI29CXqUWbEi4QW+fHSI4JsOnP 1v+VDixGArnHyDbWEb3NzAVLydImODC0lc/1L10= X-Google-Smtp-Source: AKy350YQ+SCGkmnqEAxQvUTT2zSNcJCAi1HbAPb2ZkZWeEOgGQg58Ex/llqX7IY5RGoozC3hnlmjOo8CgcD2VT1QHPU= X-Received: by 2002:ac2:428b:0:b0:4d5:ca32:7bc5 with SMTP id m11-20020ac2428b000000b004d5ca327bc5mr4995567lfh.12.1680042889437; Tue, 28 Mar 2023 15:34:49 -0700 (PDT) MIME-Version: 1.0 References: <20230311144938.765-1-Rostislav.Svoboda@gmail.com> <20230311144938.765-3-Rostislav.Svoboda@gmail.com> <871qlndal1.fsf@nicolasgoaziou.fr> In-Reply-To: <871qlndal1.fsf@nicolasgoaziou.fr> From: Rostislav Svoboda Date: Wed, 29 Mar 2023 00:34:13 +0200 Message-ID: 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Hi Nicolas > Nitpick: usually, inputs and propagated inputs are located after arguments. Done > > + (arguments > > + (list #:phases #~(modify-phases %standard-phases > > You can add a newline characther after `list' and another one after > `#:phases'. Done > Also, pip -> Pip, pippel -> Pippel Done > I think you also need to include "pippel.py" file through #:include Done > keyword and possibly configure `pippel-package-path'. Done. Please have a look if it's done correctly. Cheers Bost From 4b83e10686d8189568b756fe514d0be0d2c54750 Mon Sep 17 00:00:00 2001 From: Rostislav Svoboda Date: Wed, 29 Mar 2023 00:15:12 +0200 Subject: [PATCH] gnu: Add emacs-pippel. * gnu/packages/emacs-xyz.scm (emacs-pippel): New variable. --- gnu/packages/emacs-xyz.scm | 48 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index da2856abc8..1cdaccd366 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -17288,6 +17288,54 @@ (define-public emacs-php-mode documentation search and a source and class browser.") (license license:gpl3+))) +(define-public emacs-pippel + (let ((commit "cb194952ee150e77601d3233dabdb521b976ee79") + (revision "0")) + (package + (name "emacs-pippel") + (version (git-version "0.1" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/arifer612/pippel") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "17606l24yyrjxa4rc0p2zj50lfbayqldw4phhi59yqf61289d520")))) + (build-system emacs-build-system) + (arguments + (list + #:include #~(cons "^pippel\\.py$" %default-include) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'substitute-pippel-package-path + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (package-path (string-append + out + "/share/emacs/site-lisp/pippel-" + #$version))) + (emacs-substitute-variables "pippel.el" + ("pippel-package-path" + package-path))))) + (add-after 'unpack 'substitute-python-path + (lambda* (#:key inputs #:allow-other-keys) + (emacs-substitute-variables "pippel.el" + ("pippel-python-command" + (search-input-file + inputs + "/bin/python")))))))) + (inputs (list python-wrapper)) + (propagated-inputs (list emacs-dash emacs-s)) + (home-page "https://github.com/arifer612/pippel") + (synopsis "Emacs frontend to Python package manager Pip") + (description + "Pippel is an Emacs frontend for the Python package manager Pip. As +Pippel also uses Tabulated List mode, it provides a similar package menu like +@code{package-list-packages}.") + (license license:gpl3+)))) + (define-public emacs-pos-tip (package (name "emacs-pos-tip")