Browse Source

Init

master
Pjotr Prins 3 months ago
parent
commit
384f09d27d
  1. 194
      prepare/packages/ruby.scm

194
prepare/packages/ruby.scm

@ -0,0 +1,194 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2014, 2015 Pjotr Prins <pjotr.guix@thebird.nl>
;;; Copyright © 2021 Efraim Flashner <efraim@flashner.co.il>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (prepare packages ruby)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (gnu packages)
#:use-module (gnu packages libffi)
#:use-module (gnu packages ruby)
#:use-module (gnu packages version-control)
#:use-module (gnu packages xml)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix utils)
#:use-module (guix build-system gnu)
#:use-module (guix build-system ruby))
(define-public bio-table ; guix ready with tests
(package
(name "bio-table")
(version "1.0.0")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "bio-table" version))
(sha256
(base32
"1jlpls734kd41rffn2y2747nr14k5rwgaj2g3k48i9xgsfcmrn6r"))))
(build-system ruby-build-system)
(arguments
`(#:tests? #f ; There are no tests.
))
(propagated-inputs
`(("ruby-bio-logger" ,ruby-bio-logger)))
(synopsis
"Functions and tools for tranforming and changing tab delimited
and comma separated table files - useful for Excel sheets and SQL/RDF
output")
(description
"Functions and tools for tranforming and changing tab delimited
and comma separated table files - useful for Excel sheets and SQL/RDF
output")
(home-page
"http://github.com/pjotrp/bioruby-table")
(license expat)))
(define-public ruby-ruby2-keywords
(package
(name "ruby-ruby2-keywords")
(version "0.0.4")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "ruby2_keywords" version))
(sha256
(base32
"15wfcqxyfgka05v2a7kpg64x57gl1y4xzvnc9lh60bqx5sf1iqrs"))))
(build-system ruby-build-system)
(arguments
`(#:tests? #f ; There are no tests.
))
(synopsis
"Shim library for Module#ruby2_keywords")
(description
"Shim library for Module#ruby2_keywords")
(home-page
"https://github.com/ruby/ruby2_keywords")
(license (list #f #f))))
(define-public ruby-mustermann
(package
(name "ruby-mustermann")
(version "1.1.1")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "mustermann" version))
(sha256
(base32
"0ccm54qgshr1lq3pr1dfh7gphkilc19dp63rw6fcx7460pjwy88a"))))
(build-system ruby-build-system)
(arguments
`(#:tests? #f ; There are no tests.
))
(propagated-inputs
`(("ruby-ruby2-keywords" ,ruby-ruby2-keywords)))
(synopsis
"A library implementing patterns that behave like regular expressions.")
(description
"This package provides a library implementing patterns that behave like regular expressions.")
(home-page
"https://github.com/sinatra/mustermann")
(license license:expat)))
(define-public ruby-sinatra
(package
(name "ruby-sinatra")
(version "2.1.0")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "sinatra" version))
(sha256
(base32
"0dd53rzpkxgs697pycbhhgc9vcnxra4ly4xar8ni6aiydx2f88zk"))))
(build-system ruby-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
;; See: https://github.com/sinatra/sinatra/issues/1578.
(add-after 'extract-gemspec 'fix-slow-doc-generation
(lambda _
(substitute* "sinatra.gemspec"
(("\"README.rdoc\"\\.freeze," all)
(string-append all " \"--exclude=.*\\.md\".freeze,")))
#t)))))
(propagated-inputs
`(("ruby-mustermann" ,ruby-mustermann)
("ruby-rack" ,ruby-rack)
("ruby-rack-protection" ,ruby-rack-protection)
("ruby-tilt" ,ruby-tilt)))
(synopsis
"Sinatra is a DSL for quickly creating web applications in Ruby with minimal effort.")
(description
"Sinatra is a DSL for quickly creating web applications in Ruby with minimal effort.")
(home-page "http://sinatrarb.com/")
(license license:expat))
)
(define-public ruby-rack-protection
(package
(name "ruby-rack-protection")
(version "2.1.0")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "rack-protection" version))
(sha256
(base32
"159a4j4kragqh0z0z8vrpilpmaisnlz3n7kgiyf16bxkwlb3qlhz"))))
(build-system ruby-build-system)
(arguments
`(#:tests? #f ; There are no tests.
))
(propagated-inputs `(("ruby-rack" ,ruby-rack)))
(synopsis
"Protect against typical web attacks, works with all Rack apps, including Rails.")
(description
"Protect against typical web attacks, works with all Rack apps, including Rails.")
(home-page "http://sinatrarb.com/protection/")
(license license:expat)))
(define-public ruby-puma
(package
(name "ruby-puma")
(version "5.3.2")
(source
(origin
(method url-fetch)
(uri (rubygems-uri "puma" version))
(sha256
(base32
"0lmaq05a257m9588a81wql3a5p039f221f0dmq57bm2qjwxydjmj"))))
(build-system ruby-build-system)
(arguments
`(#:tests? #f ; Tests require an out-dated version of minitest.
))
(propagated-inputs `(("ruby-nio4r" ,ruby-nio4r)))
(synopsis
"Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack applications. Puma is intended for use in both development and production environments. It's great for highly concurrent Ruby implementations such as Rubinius and JRuby as well as as providing process worker support to support CRuby well.")
(description
"Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack applications. Puma is intended for use in both development and production environments. It's great for highly concurrent Ruby implementations such as Rubinius and JRuby as well as as providing process worker support to support CRuby well.")
(home-page "https://puma.io")
(license #f)))
Loading…
Cancel
Save