From patchwork Sun Feb 11 11:43:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hartmut Goebel X-Patchwork-Id: 60064 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 B594927BBEA; Sun, 11 Feb 2024 11:46:29 +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 51F6C27BBE2 for ; Sun, 11 Feb 2024 11:46:29 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rZ8HS-00063Z-69; Sun, 11 Feb 2024 06:45:54 -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 1rZ8HP-00060S-9i for guix-patches@gnu.org; Sun, 11 Feb 2024 06:45:51 -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 1rZ8HO-0006S7-PL for guix-patches@gnu.org; Sun, 11 Feb 2024 06:45:50 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rZ8He-0008Fl-Th for guix-patches@gnu.org; Sun, 11 Feb 2024 06:46:06 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69048] [PATCH 30/32] gnu: Add python-pydantic-2. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 11 Feb 2024 11:46:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69048 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69048@debbugs.gnu.org Received: via spool by 69048-submit@debbugs.gnu.org id=B69048.170765193631523 (code B ref 69048); Sun, 11 Feb 2024 11:46:06 +0000 Received: (at 69048) by debbugs.gnu.org; 11 Feb 2024 11:45:36 +0000 Received: from localhost ([127.0.0.1]:41812 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZ8H9-0008CJ-K1 for submit@debbugs.gnu.org; Sun, 11 Feb 2024 06:45:36 -0500 Received: from mail05.noris.net ([62.128.1.225]:43129) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rZ8H5-0008Bt-4i for 69048@debbugs.gnu.org; Sun, 11 Feb 2024 06:45:31 -0500 Received: from mail01.noris.net ([62.128.1.221]) by mail05.noris.net with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) (envelope-from ) id 1rZ8GZ-000KYf-3j for 69048@debbugs.gnu.org; Sun, 11 Feb 2024 12:44:59 +0100 Received: from p57b08159.dip0.t-ipconnect.de ([87.176.129.89] helo=hermia.goebel-consult.de) by mail01.noris.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim) (envelope-from ) id 1rZ8GY-0008O4-WD for 69048@debbugs.gnu.org; Sun, 11 Feb 2024 12:44:59 +0100 Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id E98B05F57A; Sun, 11 Feb 2024 12:44:00 +0100 (CET) From: Hartmut Goebel Date: Sun, 11 Feb 2024 12:43:39 +0100 Message-ID: <1f6549e0828e4a4638a98e948b9b395ae5e8e457.1707650794.git.h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <60825c66932829f895e6426b36d6d290a081ffa5.1707650792.git.h.goebel@crazy-compilers.com> References: <60825c66932829f895e6426b36d6d290a081ffa5.1707650792.git.h.goebel@crazy-compilers.com> MIME-Version: 1.0 X-Noris-IP: 87.176.129.89 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/python-xyz.scm (python-pydantic-2): New variable. --- gnu/packages/python-xyz.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 4749c3f204..47aaa84e76 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -7424,6 +7424,39 @@ (define-public python-pydantic-core validation and serialization.") (license license:expat))) +(define-public python-pydantic-2 + (package + (inherit python-pydantic) + (name "python-pydantic") + (version "2.6.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pydantic" version)) + (sha256 + (base32 "1a8zbm510czjnfa6xn56w80q121pk7qpywrjdlzcd3a8la1c3mag")))) + (build-system pyproject-build-system) + (arguments + ;; This test requires pytest-examples, which in turn requires + ;; python-ruff, which is difficult to package because it is + ;; written in Rust (TODO: Enable when Ruff is in Guix!). + (list #:test-flags #~'("--ignore" "tests/test_docs.py"))) + (native-inputs + (list python-hatchling + python-hatch-fancy-pypi-readme + python-cloudpickle + python-dirty-equals + python-email-validator + python-faker + python-pytest + python-pytest-benchmark + python-pytest-mock)) + (propagated-inputs + (list python-annotated-types + python-pydantic-core + python-typing-extensions)) + (license license:expat))) + (define-public python-pydantic-cli (package (name "python-pydantic-cli")