summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYovan Naumovski via Guix-patches via <guix-patches@gnu.org>2023-05-11 23:17:31 +0300
committerChristopher Baines <mail@cbaines.net>2023-07-10 12:39:35 +0100
commit0a6f2b8f31689f4896d0eead8083b80c1860d0c7 (patch)
tree487ba758471cd007d8a18841c84b5bb9b836dc62
parent8509e977b472fe18bbb82c57aab6c026740a4a78 (diff)
gnu: Add ruby-faker.
* gnu/packages/ruby.scm (ruby-faker): New variable.
-rw-r--r--gnu/packages/ruby.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index f8b68ada89..1953a6d70e 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -7669,6 +7669,38 @@ of terminal output.")
(home-page "https://stitchfix.github.io/immutable-struct/")
(license license:expat)))
+(define-public ruby-faker
+ (package
+ (name "ruby-faker")
+ (version "3.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/faker-ruby/faker")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1wwdwh5qwaxnd9dl6732mj6b953l5r32r4936pj5680963iagq59"))))
+ (build-system ruby-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'remove-rubocop-from-rakefile
+ (lambda _
+ (substitute* "Rakefile"
+ (("require 'rubocop/rake_task'") "")
+ (("RuboCop::RakeTask\\.new") "")))))))
+ (native-inputs (list ruby-yard ruby-simplecov ruby-timecop))
+ (propagated-inputs (list ruby-i18n))
+ (synopsis "Library for generating fake data")
+ (description "Faker is a port of Data::Faker from Perl. It is used to
+easily generate fake data: names, addresses, phone numbers, etc.")
+ (home-page "https://github.com/faker-ruby/faker")
+ (license license:expat)))
+
(define-public ruby-terraform
(package
(name "ruby-terraform")