mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: emacs-elpy: Update to 1.35.0-0.8d0de31.
* gnu/packages/emacs-xyz.scm (emacs-elpy): Update to 1.35.0-0.8d0de31. [source]: Use git-fetch. [phases]{patch-ffip-project-search-call}: Delete. {disable-broken-tests}: New phase. [propagated-inputs]{python-rope}: Remove.
This commit is contained in:
parent
18dd5e45e4
commit
d42a56f8ae
1 changed files with 83 additions and 77 deletions
|
@ -10545,32 +10545,39 @@ indentation guides in Emacs:
|
|||
(license license:gpl2+))))
|
||||
|
||||
(define-public emacs-elpy
|
||||
;; Use the latest commit, as it contains unreleased fixes for Python 3.9 and
|
||||
;; Jedi 0.18.
|
||||
(let ((commit "8d0de310d41ebf06b22321a8534546447456870c")
|
||||
(revision "0"))
|
||||
(package
|
||||
(name "emacs-elpy")
|
||||
(version "1.35.0")
|
||||
(version (git-version "1.35.0" revision commit))
|
||||
(source (origin
|
||||
(method git-fetch)
|
||||
(uri (git-reference
|
||||
(url "https://github.com/jorgenschaefer/elpy")
|
||||
(commit version)))
|
||||
(commit commit)))
|
||||
(file-name (git-file-name name version))
|
||||
(sha256
|
||||
(base32
|
||||
"07rdb9w3bxzfr07224awa541xdy116hyc2b3bpl3fc3ikddmbydk"))))
|
||||
"0hg6yk0wkfh2rwcc4h0bb6m2p3dg62ja22mjpa94khq52lv1piwf"))))
|
||||
(build-system emacs-build-system)
|
||||
(arguments
|
||||
`(#:include (cons* "^elpy/[^/]+\\.py$" "^snippets\\/" %default-include)
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-after 'unpack 'patch-ffip-project-search-call
|
||||
(add-after 'unpack 'disable-broken-tests
|
||||
;; Some tests are known to have problems with Python 3.9; disable
|
||||
;; them (see: https://github.com/jorgenschaefer/elpy/issues/1856).
|
||||
(lambda _
|
||||
;; Since version 6.0.0 of find-file-in-project,
|
||||
;; ffip-project-search doesn't accept a third argument anymore
|
||||
;; (see: https://github.com/jorgenschaefer/elpy/issues/1889).
|
||||
(substitute* "elpy.el"
|
||||
(("\\((ffip-project-search nil nil) project-root\\)" _ signature)
|
||||
(format #f "(let ((ffip-project-root project-root)) (~a))"
|
||||
signature)))))
|
||||
(substitute* "test/elpy-refactor-rename-test.el"
|
||||
((".*ert-deftest elpy-refactor.*rename-in-multiple-files.*"
|
||||
all)
|
||||
(string-append all " :expected-result :failed\n")))
|
||||
(substitute* "test/elpy-multiedit-python-symbol-at-point-test.el"
|
||||
((".*ert-deftest elpy-multiedit.*should-save-some-buffers.*"
|
||||
all)
|
||||
(string-append all " :expected-result :failed\n")))))
|
||||
;; The default environment of the RPC uses Virtualenv to install
|
||||
;; Python dependencies from PyPI. We don't want/need this in Guix.
|
||||
(add-before 'check 'do-not-use-virtualenv
|
||||
|
@ -10609,7 +10616,6 @@ indentation guides in Emacs:
|
|||
("python-black" ,python-black)
|
||||
("python-flake8" ,python-flake8)
|
||||
("python-jedi" ,python-jedi)
|
||||
("python-rope" ,python-rope)
|
||||
("python-yapf" ,python-yapf)))
|
||||
(native-inputs
|
||||
`(("ert-runner" ,emacs-ert-runner)
|
||||
|
@ -10624,7 +10630,7 @@ indentation guides in Emacs:
|
|||
and configures a number of other packages written in Emacs Lisp as well as
|
||||
Python, together offering features such as navigation, documentation,
|
||||
completion, interactive development and more.")
|
||||
(license license:gpl3+)))
|
||||
(license license:gpl3+))))
|
||||
|
||||
(define-public emacs-rainbow-delimiters
|
||||
(package
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue