guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: emacs-jedi: Install and patch location of je


From: guix-commits
Subject: branch master updated: gnu: emacs-jedi: Install and patch location of jediepcserver.
Date: Wed, 22 Jun 2022 13:30:53 -0400

This is an automated email from the git hooks/post-receive script.

apteryx pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 299be00adb gnu: emacs-jedi: Install and patch location of 
jediepcserver.
299be00adb is described below

commit 299be00adb427441c0cb7d301bf918594f61400e
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Wed Jun 22 13:23:28 2022 -0400

    gnu: emacs-jedi: Install and patch location of jediepcserver.
    
    * gnu/packages/emacs-xyz.scm (emacs-jedi)[arguments]: New field.
    [native-inputs]: Add python-wrapper.
    [inputs]: New field.
    
    Reported-by: jgart <jgart@dismail.de>
---
 gnu/packages/emacs-xyz.scm | 35 +++++++++++++++++++++++++++++++++--
 1 file changed, 33 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 5779c02c8d..d27f79a7a9 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -7833,8 +7833,39 @@ using @code{python-isort}.")
                (base32
                 "1bckxppfzd5gwn0aw4h86igb7igal9axqncq7j8zmflg7zppncf1"))))
     (build-system emacs-build-system)
-    (native-inputs
-     (list emacs-mocker))
+    (arguments
+     (list
+      #:imported-modules `(,@%emacs-build-system-modules
+                           (guix build python-build-system))
+      #:modules '((guix build emacs-build-system)
+                  ((guix build python-build-system) #:prefix python:)
+                  (guix build emacs-utils)
+                  (guix build utils))
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'ensure-no-mtimes-pre-1980
+            (assoc-ref python:%standard-phases
+                       'ensure-no-mtimes-pre-1980))
+          (add-after 'ensure-no-mtimes-pre-1980 'relax-python-requirements
+            (lambda _
+              ;; Argparse should only be required for Python < 3.2
+              ;; (see: https://github.com/tkf/emacs-jedi/issues/365).
+              (substitute* "setup.py"
+                ((".*argparse.*") ""))))
+          (add-after 'relax-python-requirements 
'python:add-install-to-pythonpath
+            (assoc-ref python:%standard-phases 'add-install-to-pythonpath))
+          (add-after 'python:add-install-to-pythonpath 'python:install
+            ;; This is needed to get the Python-built 'jediepcserver' command.
+            (assoc-ref python:%standard-phases 'install))
+          (add-after 'python:install 'python:wrap
+            (assoc-ref python:%standard-phases 'wrap))
+          (add-after 'python:wrap 'patch-jedi:server-command
+            (lambda* (#:key outputs #:allow-other-keys)
+              (emacs-substitute-variables "jedi-core.el"
+                ("jedi:server-command"
+                 (search-input-file outputs "bin/jediepcserver"))))))))
+    (native-inputs (list emacs-mocker python-wrapper))
+    (inputs (list python-wrapper python-epc python-jedi)) ;wrapped
     (propagated-inputs
      (list emacs-auto-complete emacs-python-environment emacs-epc))
     (home-page "https://github.com/tkf/emacs-jedi";)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]