mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 13:10:33 +02:00
gnu: licenseheaders: Update to 0.8.8.
* gnu/packages/license.scm (licenseheaders): Update to 0.8.8. [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]: Improve style. <#:test-backend, #:test-flags, #:phases>: Run tests. [native-inputs]: Add python-setuptools. Change-Id: Idbfc65edac210c9423ca9b6786c442ca75b8bbef Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
committed by
Sharlatan Hellseher
parent
ffa4ce6b72
commit
56bd65a410
@@ -268,27 +268,36 @@ designed to be simple.")
|
|||||||
(define-public licenseheaders
|
(define-public licenseheaders
|
||||||
(package
|
(package
|
||||||
(name "licenseheaders")
|
(name "licenseheaders")
|
||||||
(version "0.8.6")
|
(version "0.8.8")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (pypi-uri "licenseheaders" version))
|
(uri (git-reference
|
||||||
|
(url "https://github.com/johann-petrak/licenseheaders")
|
||||||
|
(commit (string-append "v" version))))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "073xcm10gyg5kcxqmbsyaz9sr0slbdwgr0r9qanch0zl8i0z9259"))))
|
(base32 "1k2naf8vgi8l5h5nxc927x8b10kr4gkraxkim72p71flm8gqhrr4"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:test-backend #~'custom
|
||||||
;; Reported upstream:
|
#:test-flags #~(list "driver.py")
|
||||||
;; <https://github.com/johann-petrak/licenseheaders/issues/47>.
|
#:phases
|
||||||
(add-after 'unpack 'patch-code
|
#~(modify-phases %standard-phases
|
||||||
(lambda _
|
;; Reported upstream:
|
||||||
(substitute* "licenseheaders.py"
|
;; <https://github.com/johann-petrak/licenseheaders/issues/47>.
|
||||||
(("\\\"filenames\\\": \\[\\\"CMakeLists.txt\\\"\\],")
|
(add-after 'unpack 'patch-code
|
||||||
"\"filenames\": [\"CMakeLists.txt\"], \n \"extensions\": [],"))
|
(lambda _
|
||||||
#t)))))
|
(substitute* "licenseheaders.py"
|
||||||
(propagated-inputs
|
(("\\\"filenames\\\": \\[\\\"CMakeLists.txt\\\"\\]," all)
|
||||||
(list python-regex))
|
(string-append all " \n \"extensions\": [],")))))
|
||||||
|
(replace 'check
|
||||||
|
(lambda args
|
||||||
|
(with-directory-excursion "tests"
|
||||||
|
(apply (assoc-ref %standard-phases 'check) args)))))))
|
||||||
|
(native-inputs (list python-setuptools))
|
||||||
|
(propagated-inputs (list python-regex))
|
||||||
(home-page "https://github.com/johann-petrak/licenseheaders")
|
(home-page "https://github.com/johann-petrak/licenseheaders")
|
||||||
(synopsis "Add or change license headers for all files in a directory")
|
(synopsis "Add or change license headers for all files in a directory")
|
||||||
(description
|
(description
|
||||||
|
|||||||
Reference in New Issue
Block a user