From patchwork Mon Oct 7 21:43:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 68782 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 D57C527BBEA; Mon, 7 Oct 2024 22:47:40 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED 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 5EBF827BBE2 for ; Mon, 7 Oct 2024 22:47:40 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sxvZG-0002LX-Ng; Mon, 07 Oct 2024 17:47:02 -0400 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 1sxvZE-0002Jn-L9 for guix-patches@gnu.org; Mon, 07 Oct 2024 17:47:00 -0400 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 1sxvZE-0004Qi-BP for guix-patches@gnu.org; Mon, 07 Oct 2024 17:47:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=W1qtYHsM+UQuoMDvmt9e+FeP73ptkHP4Hm4o6S+aB9c=; b=sKVY+Ecg+PJrwToooU6QJgarpGmhNPvvpmm9MMT502lbU5Ga12JLF4C/sFluKv0B2WOwWYWjd15gZLZcaGuForlYpQxuI7Gay8l+N8RzMkDw+ZNGiG/NAA82quNAUW93ta6EWWX7ZvrQAt1ur04rEOTAzE5TK+wZ8khvF6zp5Ej2Wev6/E6ATJdQ88PV0jrlonTPHZTMpS7oXBrfvvAP0Rzj8IsHo/qn88XLp6TdDqUGpWcSSL/60bgFxpcix9SiOdzDP3R9sV55n5ncZfMK5is6dNtYwTUmht9IH5zpvzZwq7IZZRBZJNDtuwHI+m58ACbRFisXZCwG8ZPJtMWB2Q==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sxvZM-0006c4-0y for guix-patches@gnu.org; Mon, 07 Oct 2024 17:47:08 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#67902] [PATCH v4 13/98] gnu: Add php-egulias-email-validator. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Oct 2024 21:47:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67902 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67902@debbugs.gnu.org Cc: Nicolas Graves Received: via spool by 67902-submit@debbugs.gnu.org id=B67902.172833757825002 (code B ref 67902); Mon, 07 Oct 2024 21:47:07 +0000 Received: (at 67902) by debbugs.gnu.org; 7 Oct 2024 21:46:18 +0000 Received: from localhost ([127.0.0.1]:48695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxvYY-0006V4-0a for submit@debbugs.gnu.org; Mon, 07 Oct 2024 17:46:18 -0400 Received: from 6.mo575.mail-out.ovh.net ([46.105.63.100]:41137) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sxvYU-0006Uj-Jt for 67902@debbugs.gnu.org; Mon, 07 Oct 2024 17:46:15 -0400 Received: from director1.ghost.mail-out.ovh.net (unknown [10.109.148.178]) by mo575.mail-out.ovh.net (Postfix) with ESMTP id 4XMt4t1hgZz1mpl for <67902@debbugs.gnu.org>; Mon, 7 Oct 2024 21:46:06 +0000 (UTC) Received: from ghost-submission-55b549bf7b-4rqrp (unknown [10.111.174.3]) by director1.ghost.mail-out.ovh.net (Postfix) with ESMTPS id E11931FE04; Mon, 7 Oct 2024 21:46:05 +0000 (UTC) Received: from ngraves.fr ([37.59.142.97]) by ghost-submission-55b549bf7b-4rqrp with ESMTPSA id zlSjHp1WBGc+3AEAibq2yg (envelope-from ); Mon, 07 Oct 2024 21:46:05 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-97G0025f850317-8d8b-494b-b16c-2f0bd11df1b2, A12302D5D8CF0E033BA678025A323BF4FAD59D46) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 86.246.19.221 Date: Mon, 7 Oct 2024 23:43:41 +0200 Message-ID: <20241007214530.4420-13-ngraves@ngraves.fr> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20241007214530.4420-1-ngraves@ngraves.fr> References: <20241007214530.4420-1-ngraves@ngraves.fr> MIME-Version: 1.0 X-Ovh-Tracer-Id: 6241426134640550626 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrvdeftddgtddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepvdehleeiffehtedvlefhffffjeefgfduhfetkeevheeiteduiedugfekuedtheejnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepuddvjedrtddrtddruddpkeeirddvgeeirdduledrvddvuddpfeejrdehledrudegvddrleejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeeijeeltddvseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehjeehpdhmohguvgepshhmthhpohhuth DKIM-Signature: a=rsa-sha256; bh=W1qtYHsM+UQuoMDvmt9e+FeP73ptkHP4Hm4o6S+aB9c=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1728337566; v=1; b=Jvj2CF17yL4WudKXRvvC7v4pkrnaeUpTuj1edxShv/wv9zrYfs3jvkMDLdu5RYXby4zf0Ts7 XwI0aFUrfxTTTscnpdZRNli68nVc3iQreXUdFuor9yTjP11TVx2COiEBe7OHLdfgNRuRTFJl1SL Sp3YuLW9p51s53UZrgDxPjllRQjJ/kE6MIMGZA3SjRjCqu3Gtlo4U/7tKsJfRydFmdBDEec+eeP NvSVRG/52ukpnf+2yDpNku2eANqdGMFvwyw6zLazDYoJeUJHtPBYLRsW2Y9wlyKoB0isq+fBaUM oo8bMttjELI0U06+/Qw2+iQ4z/eBUPz5q/BmYTm7gG6YA== 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: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves 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/php-xyz.scm (php-egulias-email-validator): New variable. Change-Id: I2a9df3ca79962aa01ce3a7a8e7d7da536350249a --- gnu/packages/php-xyz.scm | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/gnu/packages/php-xyz.scm b/gnu/packages/php-xyz.scm index a27098e18d..28e1e5cd4b 100644 --- a/gnu/packages/php-xyz.scm +++ b/gnu/packages/php-xyz.scm @@ -278,3 +278,50 @@ (define-public php-dms-phpunit-arraysubset-asserts (home-page "https://github.com/rdohms/phpunit-arraysubset-asserts") (license license:expat))) +(define-public php-egulias-email-validator + (package + (name "php-egulias-email-validator") + (version "4.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/egulias/EmailValidator") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0nyqri3421gkiswn70f7f8cfz4vs1vcadxdyvwjykbgc4fz5skz2")))) + (build-system composer-build-system) + (arguments + (list + #:test-flags ''("--exclude" "skipTest") ; FIXME + #:phases + #~(modify-phases %standard-phases + (add-before 'check 'deactivate-failing-tests + (lambda _ + (substitute* + "tests/EmailValidator/Validation/DNSCheckValidationTest.php" + (("(.*)@dataProvider validEmailsProvider" all blank) + (string-append all "\n" + blank "@group skipTest")) + (("(.*)public function testDomainAcceptsNoMailError\\(\\)" all blank) + (string-append + blank "/**\n" + blank " * @group skipTest\n" + blank " */\n" + all)) + (("(.*)public function testNoDNSError\\(\\)" all blank) + (string-append + blank "/**\n" + blank " * @group skipTest\n" + blank " */\n" + all)))))))) + (inputs + (list php-doctrine-lexer php-symfony-polyfill-intl-idn)) + (native-inputs + (list php-phpunit-phpunit)) + (synopsis "PHP email address validator") + (description "A library for validating emails against several RFCs") + (home-page "https://github.com/egulias/EmailValidator") + (license license:expat))) +