From patchwork Thu Feb 8 09:35:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Hartmut Goebel X-Patchwork-Id: 59949 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 9922027BBEB; Thu, 8 Feb 2024 09:38:46 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7539027BBEA for ; Thu, 8 Feb 2024 09:38:45 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rY0q4-0004lT-5x; Thu, 08 Feb 2024 04:37:00 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rY0q2-0004k7-Vy for guix-patches@gnu.org; Thu, 08 Feb 2024 04:36:58 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rY0q2-0001zi-MS for guix-patches@gnu.org; Thu, 08 Feb 2024 04:36:58 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rY0qG-0006MQ-U1 for guix-patches@gnu.org; Thu, 08 Feb 2024 04:37:12 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68990] [PATCH 20/28] gnu: Add ruby-vagrant-spec. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 08 Feb 2024 09:37:12 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68990 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68990@debbugs.gnu.org Received: via spool by 68990-submit@debbugs.gnu.org id=B68990.170738502024226 (code B ref 68990); Thu, 08 Feb 2024 09:37:12 +0000 Received: (at 68990) by debbugs.gnu.org; 8 Feb 2024 09:37:00 +0000 Received: from localhost ([127.0.0.1]:59092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rY0q4-0006Ia-6F for submit@debbugs.gnu.org; Thu, 08 Feb 2024 04:37:00 -0500 Received: from mail03.noris.net ([62.128.1.223]:52065) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rY0q1-0006IQ-PM for 68990@debbugs.gnu.org; Thu, 08 Feb 2024 04:36:58 -0500 Received: from p57b09e9c.dip0.t-ipconnect.de ([87.176.158.156] helo=hermia.goebel-consult.de) by mail03.noris.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) (envelope-from ) id 1rY0pm-0002oT-Td for 68990@debbugs.gnu.org; Thu, 08 Feb 2024 10:36:42 +0100 Received: from lenashee.fritz.box (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 1E7BB5F568; Thu, 8 Feb 2024 10:36:01 +0100 (CET) From: Hartmut Goebel Date: Thu, 8 Feb 2024 10:35:50 +0100 Message-ID: <52a891fd83d61070ee77b27ab2c62527ea0a5379.1707383695.git.h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 X-Noris-IP: 87.176.158.156 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/virtualization.scm (ruby-vagrant-spec): New variable. --- gnu/packages/virtualization.scm | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/virtualization.scm b/gnu/packages/virtualization.scm index 91f7a151a6..59cb2a6e58 100644 --- a/gnu/packages/virtualization.scm +++ b/gnu/packages/virtualization.scm @@ -31,6 +31,7 @@ ;;; Copyright © 2023 Juliana Sims ;;; Copyright © 2023 Ahmad Draidi ;;; Copyright © 2023 Sharlatan Hellseher +;;; Copyright © 2023 Hartmut Goebel ;;; ;;; This file is part of GNU Guix. ;;; @@ -123,6 +124,7 @@ (define-module (gnu packages virtualization) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages readline) + #:use-module (gnu packages ruby) #:use-module (gnu packages rsync) #:use-module (gnu packages sdl) #:use-module (gnu packages selinux) @@ -143,6 +145,7 @@ (define-module (gnu packages virtualization) #:use-module (guix build-system go) #:use-module (guix build-system meson) #:use-module (guix build-system python) + #:use-module (guix build-system ruby) #:use-module (guix build-system trivial) #:use-module (guix download) #:use-module (guix gexp) @@ -2311,6 +2314,40 @@ (define-public skopeo @end enumerate") (license license:asl2.0))) +(define-public ruby-vagrant-spec + (package + (name "ruby-vagrant-spec") + (version "0.0.6") + (source (origin + (method url-fetch) + (uri (rubygems-uri "vagrant_spec" version)) + (sha256 + (base32 + "1bkzz3mj7kzsv6k0ii8w31cgkpiqw3wvmvv2c6rknsavqqnagb4g")))) + (build-system ruby-build-system) + ;; (native-inputs (list ruby-rubocop ruby-vagrant-spec-helper-basic)) + (propagated-inputs (list ruby-coveralls ruby-serverspec ruby-dep)) + (arguments + (list + #:tests? #f ;; tests require vagrant + ;; target 'test' includes 'cops' and running some ansible-playbook + #:test-target "unit" + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch + (lambda _ + (substitute* "Rakefile" + (("Bundler::GemHelper") "require 'bundler'\nBundler::GemHelper")))) + (add-before 'check 'prepare-check + (lambda _ + (setenv "HOME" "/tmp")))))) + (synopsis "Specification and tests for Vagrant") + (description "@code{vagrant-spec} is a both a specification of how Vagrant +and its various components should behave as well as a library of testing +helpers that let you write your own unit and acceptance tests for Vagrant.") + (home-page "https://github.com/hashicorp/vagrant-spec") + (license license:mpl2.0))) + (define-public python-vagrant (package (name "python-vagrant")