mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: Add ruby-jwt.
* gnu/packages/ruby.scm (ruby-jwt): New variable.
This commit is contained in:
parent
2a9ce5cb3e
commit
2a8581ac38
1 changed files with 38 additions and 0 deletions
|
@ -4030,6 +4030,44 @@ (define-public ruby-json-pure
|
||||||
(home-page "https://flori.github.com/json")
|
(home-page "https://flori.github.com/json")
|
||||||
(license license:ruby)))
|
(license license:ruby)))
|
||||||
|
|
||||||
|
(define-public ruby-jwt
|
||||||
|
(package
|
||||||
|
(name "ruby-jwt")
|
||||||
|
(version "2.1.0")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method url-fetch)
|
||||||
|
(uri (rubygems-uri "jwt" version))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1w0kaqrbl71cq9sbnixc20x5lqah3hs2i93xmhlfdg2y3by7yzky"))))
|
||||||
|
(build-system ruby-build-system)
|
||||||
|
(arguments
|
||||||
|
'(#:test-target "test"
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'remove-unnecessary-dependencies
|
||||||
|
(lambda _
|
||||||
|
(substitute* "spec/spec_helper.rb"
|
||||||
|
(("require 'simplecov.*") "\n")
|
||||||
|
;; Use [].each to disable running the SimpleCov configuration
|
||||||
|
;; block
|
||||||
|
(("SimpleCov\\.configure") "[].each")
|
||||||
|
(("require 'codeclimate-test-reporter'") "")
|
||||||
|
(("require 'codacy-coverage'") "")
|
||||||
|
(("Codacy::Reporter\\.start") ""))
|
||||||
|
#t)))))
|
||||||
|
(native-inputs
|
||||||
|
`(("bundler" ,bundler)
|
||||||
|
("ruby-rspec" ,ruby-rspec)
|
||||||
|
("ruby-rbnacl" ,ruby-rbnacl)))
|
||||||
|
(synopsis "Ruby implementation of the JSON Web Token standard")
|
||||||
|
(description
|
||||||
|
"This package provides a pure Ruby implementation of the RFC 7519 OAuth
|
||||||
|
@acronym{JWT, JSON Web Token} standard.")
|
||||||
|
(home-page "https://github.com/jwt/ruby-jwt")
|
||||||
|
(license license:expat)))
|
||||||
|
|
||||||
;; Even though this package only provides bindings for a Mac OSX API it is
|
;; Even though this package only provides bindings for a Mac OSX API it is
|
||||||
;; required by "ruby-listen" at runtime.
|
;; required by "ruby-listen" at runtime.
|
||||||
(define-public ruby-rb-fsevent
|
(define-public ruby-rb-fsevent
|
||||||
|
|
Loading…
Reference in a new issue