gnu: Add node-wrappy.

* gnu/packages/node-xyz.scm (node-wrappy): New variable.

Signed-off-by: Leo Famulari <leo@famulari.name>
This commit is contained in:
Ron Nazarov via Guix-patches via 2021-04-03 22:19:08 +01:00 committed by Leo Famulari
parent 561017f838
commit ab0ed26eb7
No known key found for this signature in database
GPG key ID: 2646FA30BACA7F08

View file

@ -1,6 +1,7 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org> ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
;;; Copyright © 2021 Noisytoot <noisytoot@disroot.org>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -272,3 +273,28 @@ (define-public node-semver
"@code{node-semver} is a JavaScript implementation of the "@code{node-semver} is a JavaScript implementation of the
@uref{https://semver.org/, SemVer.org} specification.") @uref{https://semver.org/, SemVer.org} specification.")
(license license:isc))) (license license:isc)))
(define-public node-wrappy
(package
(name "node-wrappy")
(version "1.0.2")
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/npm/wrappy")
(commit (string-append "v" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1ymlc61cja6v5438vwb04gq8wg2b784lj39zf0g4i36fvgcw9783"))))
(build-system node-build-system)
(arguments
'(#:tests? #f ; FIXME: Tests depend on node-tap
#:phases
(modify-phases %standard-phases
;; The only dependency to check for is tap, which we don't have.
(delete 'configure))))
(home-page "https://github.com/npm/wrappy")
(synopsis "Callback wrapping utility")
(description "@code{wrappy} is a utility for Node.js to wrap callbacks.")
(license license:isc)))