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>
This commit is contained in:
parent
d798e0a111
commit
299be00adb
1 changed files with 33 additions and 2 deletions
|
@ -7833,8 +7833,39 @@ using @code{python-isort}.")
|
||||||
(base32
|
(base32
|
||||||
"1bckxppfzd5gwn0aw4h86igb7igal9axqncq7j8zmflg7zppncf1"))))
|
"1bckxppfzd5gwn0aw4h86igb7igal9axqncq7j8zmflg7zppncf1"))))
|
||||||
(build-system emacs-build-system)
|
(build-system emacs-build-system)
|
||||||
(native-inputs
|
(arguments
|
||||||
(list emacs-mocker))
|
(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
|
(propagated-inputs
|
||||||
(list emacs-auto-complete emacs-python-environment emacs-epc))
|
(list emacs-auto-complete emacs-python-environment emacs-epc))
|
||||||
(home-page "https://github.com/tkf/emacs-jedi")
|
(home-page "https://github.com/tkf/emacs-jedi")
|
||||||
|
|
Reference in a new issue