From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2D5ZJhMcMV87XQAA0tVLHw (envelope-from ) for ; Mon, 10 Aug 2020 10:06:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id SOdEIhMcMV/1IAAAB5/wlQ (envelope-from ) for ; Mon, 10 Aug 2020 10:06:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id F1D6B9402CB for ; Mon, 10 Aug 2020 10:06:09 +0000 (UTC) Received: from localhost ([::1]:51796 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k54gx-0000lG-A5 for larch@yhetil.org; Mon, 10 Aug 2020 06:06:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k54gt-0000ke-2Y for guix-patches@gnu.org; Mon, 10 Aug 2020 06:06:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51135) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k54gs-0005ga-Ot for guix-patches@gnu.org; Mon, 10 Aug 2020 06:06:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k54gs-0001S3-KR for guix-patches@gnu.org; Mon, 10 Aug 2020 06:06:02 -0400 Subject: bug#42792: [PATCH] gnu: Add python-pydantic. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Mon, 10 Aug 2020 10:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 42792 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tanguy Le Carrour Cc: 42792-done@debbugs.gnu.org Mail-Followup-To: 42792@debbugs.gnu.org, othacehe@gnu.org, tanguy@bioneland.org Received: via spool by 42792-done@debbugs.gnu.org id=D42792.15970539315495 (code D ref 42792); Mon, 10 Aug 2020 10:06:02 +0000 Received: (at 42792-done) by debbugs.gnu.org; 10 Aug 2020 10:05:31 +0000 Received: from localhost ([127.0.0.1]:34438 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k54gN-0001QX-9N for submit@debbugs.gnu.org; Mon, 10 Aug 2020 06:05:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k54gM-0001QI-Et for 42792-done@debbugs.gnu.org; Mon, 10 Aug 2020 06:05:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46803) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k54gF-0005SC-U6; Mon, 10 Aug 2020 06:05:23 -0400 Received: from [2a01:e0a:19b:d9a0:3107:b202:556:bd51] (port=46542 helo=cervin) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1k54gF-0001rv-EI; Mon, 10 Aug 2020 06:05:23 -0400 From: Mathieu Othacehe References: <20200810084343.10734-1-tanguy@bioneland.org> Date: Mon, 10 Aug 2020 12:05:21 +0200 In-Reply-To: <20200810084343.10734-1-tanguy@bioneland.org> (Tanguy Le Carrour's message of "Mon, 10 Aug 2020 10:43:43 +0200") Message-ID: <87wo26g6ji.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: U8uHZnUjUzq3 Hello Tanguy, > * gnu/packages/python-xyz.scm (python-pydantic): New variable. Applied with the following diff: diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index a36e99aa32..4102902465 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -3829,30 +3829,32 @@ Language (TOML) configuration files.") (method git-fetch) (uri (git-reference (url "https://github.com/samuelcolvin/pydantic") - (commit (string-append "v" version)))) + (commit (string-append "v" version)))) (file-name (git-file-name name version)) - (sha256 (base32 "1380s9k77g6q15by9fkxndczjk89q6xpz09jdrqip535xws2z3j8")))) + (sha256 + (base32 "1380s9k77g6q15by9fkxndczjk89q6xpz09jdrqip535xws2z3j8")))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases - ;; Reported upstream: - ;; Not sure how to apply the suggested fix!? + ;; Reported upstream: + ;; . + ;; Disable the faulty test as the fix is unclear. (add-before 'check 'disable-test (lambda _ (substitute* "tests/test_validators.py" (("test_assert_raises_validation_error") - "_test_assert_raises_validation_error")) + "_test_assert_raises_validation_error")) #t)) (replace 'check (lambda _ (invoke "pytest" "-vv" "tests")))))) (native-inputs `(("python-pytest" ,python-pytest))) (home-page "https://github.com/samuelcolvin/pydantic") - (synopsis "Data validation and settings management using python type hinting") + (synopsis "Python data validation and settings management") (description - "Pydantic enforces type hints at runtime, and provides user friendly errors -when data is invalid.") + "Pydantic enforces type hints at runtime, and provides user friendly +errors when data is invalid.") (license license:expat))) Thanks, Mathieu