me
/
guix
Archived
1
0
Fork 0

gnu: Add emacs-elquery.

* gnu/packages/emacs-xyz.scm (emacs-elquery): New variable.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
master
jgart 2022-09-28 23:50:39 -05:00 committed by Nicolas Goaziou
parent 97a2f8e48e
commit c9f02fb44f
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D
1 changed files with 43 additions and 0 deletions

View File

@ -8455,6 +8455,49 @@ the locations of docstrings, arguments, and functions.")
"This package provides a Company backend for Python.")
(license license:gpl3+)))
(define-public emacs-elquery
(package
(name "emacs-elquery")
(version "1.1.0")
(source
(origin
(method git-fetch)
(uri
(git-reference
(url "https://github.com/AdamNiederer/elquery")
(commit version)))
(file-name (git-file-name name version))
(sha256
(base32 "035zjzmd7yfw0rsjpaklc2wwiqw6brkjadch9x8n8n2gjyxg05mn"))))
(build-system emacs-build-system)
(arguments
(list
#:emacs emacs-no-x
#:tests? #t
#:test-command #~(list "ert-runner")
#:phases #~(modify-phases %standard-phases
(add-after 'unpack 'fix-native-compilation
(lambda _
(substitute* "elquery.el"
(("\\(1- \\(/ length \\(match-data\\)\\) 2\\)")
"(1- (/ (length (match-data)) 2))"))))
(add-before 'check 'disable-failing-tests
(lambda _
(substitute* "test/elquery-test.el"
(("\\(ert-deftest elquery--write-test .*" all)
(string-append all "(skip-unless nil)\n"))))))))
(native-inputs
(list emacs-ert-runner emacs-undercover))
(propagated-inputs
(list emacs-dash))
(home-page "https://github.com/AdamNiederer/elquery/")
(synopsis "Read and manipulate HTML in Emacs")
(description
"Elquery is a library that lets you parse, query, set, and format HTML using
Emacs Lisp. It implements most of the @code{querySelector} API, and can get
and set HTML attributes.")
(license license:gpl3+)))
(define-public emacs-puppet-mode
(package
(name "emacs-puppet-mode")