gnu: emacs-json-reformat: Don't use unstable tarball.
* gnu/packages/emacs-xyz.scm (emacs-json-reformat)[source]: Use GIT-FETCH and GIT-FILE-NAME. [arguments]: Add ‘make-tests-writable’ phase.
This commit is contained in:
parent
31a324b270
commit
984a2307f3
|
@ -7373,13 +7373,13 @@ running a customisable handler command (@code{ignore} by default). ")
|
||||||
(version "0.0.6")
|
(version "0.0.6")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (string-append "https://github.com/gongo/json-reformat/archive/"
|
(uri (git-reference
|
||||||
version ".tar.gz"))
|
(url "https://github.com/gongo/json-reformat.git")
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "0qp4n2k6s69jj4gwwimkpadjv245y54wk3bxb1x96f034gkp81vs"))
|
||||||
"11fbq4scrgr7m0iwnzcrn2g7xvqwm2gf82sa7zy1l0nil7265p28"))
|
|
||||||
(patches (search-patches "emacs-json-reformat-fix-tests.patch"))))
|
(patches (search-patches "emacs-json-reformat-fix-tests.patch"))))
|
||||||
(build-system emacs-build-system)
|
(build-system emacs-build-system)
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
|
@ -7393,6 +7393,10 @@ running a customisable handler command (@code{ignore} by default). ")
|
||||||
#:test-command '("ert-runner")
|
#:test-command '("ert-runner")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-before 'check 'make-tests-writable
|
||||||
|
(lambda _
|
||||||
|
(for-each make-file-writable (find-files "test"))
|
||||||
|
#t))
|
||||||
(add-before 'check 'delete-json-objects-order-test
|
(add-before 'check 'delete-json-objects-order-test
|
||||||
(lambda _
|
(lambda _
|
||||||
(emacs-batch-edit-file "test/json-reformat-test.el"
|
(emacs-batch-edit-file "test/json-reformat-test.el"
|
||||||
|
|
Loading…
Reference in New Issue