From patchwork Wed Sep 7 18:34:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Garek Dyszel X-Patchwork-Id: 42287 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 DB8FC27BBEA; Wed, 7 Sep 2022 19:38:36 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable 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 9BAC327BBE9 for ; Wed, 7 Sep 2022 19:38:36 +0100 (BST) Received: from localhost ([::1]:42592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oVzwZ-0000Ab-PP for patchwork@mira.cbaines.net; Wed, 07 Sep 2022 14:38:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oVztB-0005t8-JT for guix-patches@gnu.org; Wed, 07 Sep 2022 14:35:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39337) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oVztB-0005Z8-7m for guix-patches@gnu.org; Wed, 07 Sep 2022 14:35:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oVztB-00083W-3w for guix-patches@gnu.org; Wed, 07 Sep 2022 14:35:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57540] [RFC PATCH v2 15/19] gnu: Add python-pytest-icdiff.* gnu/packages/python-check.scm (python-pytest-icdiff): New variable. References: <79d544f7d8ba64b631a6f0f1d2ef0b08@disroot.org> In-Reply-To: <79d544f7d8ba64b631a6f0f1d2ef0b08@disroot.org> Resent-From: Garek Dyszel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 07 Sep 2022 18:35:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57540 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57540@debbugs.gnu.org Received: via spool by 57540-submit@debbugs.gnu.org id=B57540.166257568430847 (code B ref 57540); Wed, 07 Sep 2022 18:35:05 +0000 Received: (at 57540) by debbugs.gnu.org; 7 Sep 2022 18:34:44 +0000 Received: from localhost ([127.0.0.1]:56252 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVzsq-00081S-8d for submit@debbugs.gnu.org; Wed, 07 Sep 2022 14:34:44 -0400 Received: from knopi.disroot.org ([178.21.23.139]:55938) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oVzsn-00081K-P2 for 57540@debbugs.gnu.org; Wed, 07 Sep 2022 14:34:42 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 365C240143 for <57540@debbugs.gnu.org>; Wed, 7 Sep 2022 20:34:41 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N4j_vLrocnqI for <57540@debbugs.gnu.org>; Wed, 7 Sep 2022 20:34:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1662575677; bh=lacvLdrihcFOXthMNaYMMylINg+0ZqM+R9qlLgnnYbE=; h=From:To:Subject:Date; b=AmEsDtEavI1UWaRYmU8NBe7hpHsxky0sCRbCdpOVo8CtEAvzYkiX8Eci+pFt8XSHz N2+Lv8bEhamlHHlFSQ0SlRFp1bf5vZvPAxlGM9281+eeXeSVp0V/Isa7GZJfxoy2Qs u2hsyICbXx8/oTcpzjHVhWZ51OOt4IDHjNhD8NQjw3odou0Av2vBJrK9WUV26/7oSK zKkN6J3Xmc7DdfHYylgIL7SHb2PsgqrjVu0zXlmSgEd1j0FL4dKEXH5M8xc36mdcr0 +1C2mEXRjpdwOS7OJ8SNeqMWGFdKHS9LMRR/n1ELpr3+npanq8d4nN8CaW4IYH5uSg 3Hfd63Jd8tBGw== Date: Wed, 07 Sep 2022 14:34:34 -0400 Message-ID: <878rmvvxs5.fsf@disroot.org> Mime-Version: 1.0 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" Reply-to: Garek Dyszel X-ACL-Warn: , Garek Dyszel via Guix-patches X-Patchwork-Original-From: Garek Dyszel via Guix-patches via From: Garek Dyszel X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-check.scm (python-pytest-icdiff): New variable. --- gnu/packages/python-check.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index 5ee1d41f34..6199b1e147 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -16,6 +16,7 @@ ;;; Copyright © 2022 Malte Frank Gerdes ;;; Copyright © 2022 Felix Gruber ;;; Copyright © 2022 Tomasz Jeneralczyk +;;; Copyright © 2022 Garek Dyszel ;;; ;;; This file is part of GNU Guix. ;;; @@ -2468,3 +2469,24 @@ (define-public python-xvfbwrapper physical display. Only a network layer is necessary. Xvfb is useful for running acceptance tests on headless servers.") (license license:expat))) + +(define-public python-pytest-icdiff + (package + (name "python-pytest-icdiff") + (version "0.6") + (source (origin + ;; Tests fail in git version, but not in the PyPi version. + ;; The PyPi version is also more up-to-date. + (method url-fetch) + (uri (pypi-uri "pytest-icdiff" version)) + (sha256 + (base32 + "1b8vzn2hvv6x25w1s446q1rfsbdik617lzpal3qb94x8a12yzwg8")))) + (build-system python-build-system) + (propagated-inputs (list python python-pypa-build python-icdiff + python-pprintpp)) + (native-inputs (list python-pytest)) + (home-page "https://github.com/hjwp/pytest-icdiff") + (synopsis "Use icdiff for better error messages in pytest assertions") + (description "Use icdiff for better error messages in pytest assertions.") + (license (license:non-copyleft "LICENSE"))))