From patchwork Wed Mar 20 22:28:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 62068 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 CD41227BBEA; Wed, 20 Mar 2024 22:32:21 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, 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 2E81727BBF2 for ; Wed, 20 Mar 2024 22:32:19 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rn4Tj-0002aw-OU; Wed, 20 Mar 2024 18:32:11 -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 1rn4T8-0001kv-GS for guix-patches@gnu.org; Wed, 20 Mar 2024 18:31:38 -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 1rn4T6-0005vY-TF; Wed, 20 Mar 2024 18:31:33 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rn4Tj-0005mq-CK; Wed, 20 Mar 2024 18:32:11 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69924] [PATCH 48/49] gnu: Add python-pydantic-settings. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Wed, 20 Mar 2024 22:32:11 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69924 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69924@debbugs.gnu.org Cc: Sharlatan Hellseher , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour , jgart Received: via spool by 69924-submit@debbugs.gnu.org id=B69924.171097392622141 (code B ref 69924); Wed, 20 Mar 2024 22:32:11 +0000 Received: (at 69924) by debbugs.gnu.org; 20 Mar 2024 22:32:06 +0000 Received: from localhost ([127.0.0.1]:36607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rn4Td-0005kk-Rp for submit@debbugs.gnu.org; Wed, 20 Mar 2024 18:32:06 -0400 Received: from mail-wm1-f46.google.com ([209.85.128.46]:60598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rn4Sd-0005Zk-46 for 69924@debbugs.gnu.org; Wed, 20 Mar 2024 18:31:03 -0400 Received: by mail-wm1-f46.google.com with SMTP id 5b1f17b1804b1-4146e53d92eso2433165e9.0 for <69924@debbugs.gnu.org>; Wed, 20 Mar 2024 15:30:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710973758; x=1711578558; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=A25pbKydJ2UjtSXhkq1jl2bf9mb43NJdzwduIU/UO5U=; b=WKmPDte9YpYx8U7DWHHrYbEiaKIZi98Ivnuv+QKxlwT95sy2zZohVlwroFMVVThcYz +xevqadkJWlFQMjBC6o+ky2D1K2PZu23eQeJeTH+b4tPIeyvlFSFkd0lbfD9D7flgu94 sXngC3hk3SGx0RKIjE1o5Ap9nOi0h1uNLrbN1RQvlgqtUrYNe4UE1cRzM5RA7iuytzLl /ec6+MA0654QhCmxKwhbBF1NSeH2G7k9UTJGp9xPidfXWkVtxh6Fy6JbDNqSKwd+j0pj xpLS9skUJ4fxPzj910PiBKiGMYHEHCh6rNV02ulF67fLXV/t0qvNesL6zHtdr3PHQZiz UeNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710973758; x=1711578558; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=A25pbKydJ2UjtSXhkq1jl2bf9mb43NJdzwduIU/UO5U=; b=VkFuC9JljNW2HFXngPnDQDj669nYs5ToAI+cz/0uTo7hJ2a2usrS2wUo4zkXZMHAqT NpzLxlaxcN+DQEtyxL1mvr125cK7weUXl4J/9yZxwy7wG0RV7c+U+QmkZidIB9VHrhYl ICTab6q7wjaa0j+g3imrlLC7d9Ew5NQ2Pq1YGBSWsNXRDOBQnmNXkZ3drOoNelF7tdZz ZXsh/gTkTKGJklWUhfHmqDNUuwn8UvaSH4qsrJ3dddlCCUAncGGWx7zMxH4qpymFphs3 RApme32HUm7eIrlEPYqDnE0/HQ6F5j5cmdZQ0scNbLudx6dYfZ6baPk3yaZTdrTmHclm XPHQ== X-Gm-Message-State: AOJu0YxSy2NDv0XiTLLBcAo4i4DCbQBgQlwJKsLSWmn4SEn5vl0yUmiN 50wnFWCn8uJMhKvxLIPcDur1KjwKqW7WcsNCTPqfWHPPc3R0vHjtLds/5fLVYQg= X-Google-Smtp-Source: AGHT+IHJEOaZNBJvs6aBHZLUqpA3EkoORvQgceImaVcg2PYqL1pJErg1Ky9Ie90K9f5J3g9qX4k+rw== X-Received: by 2002:a05:600c:4e93:b0:414:245:f6df with SMTP id f19-20020a05600c4e9300b004140245f6dfmr5259679wmq.21.1710973757840; Wed, 20 Mar 2024 15:29:17 -0700 (PDT) Received: from localhost.localdomain (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id fm22-20020a05600c0c1600b004147266a37dsm543921wmb.30.2024.03.20.15.29.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 15:29:17 -0700 (PDT) From: Sharlatan Hellseher Date: Wed, 20 Mar 2024 22:28:18 +0000 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-pydantic-settings): New variable. Change-Id: I410edc37f17a293f3d40ce9a2ab6416ea35bae39 --- gnu/packages/python-xyz.scm | 65 +++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 6d587dc017..285507971a 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -7603,6 +7603,71 @@ (define-public python-pydantic-cli Interfaces} via data models provided in the JSON format.") (license license:expat))) +(define-public python-pydantic-settings + (package + (name "python-pydantic-settings") + (version "2.2.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pydantic_settings" version)) + (sha256 + (base32 "1vf58f398ngk6wpf0jn51ghw65mjs3m03yn06h25jlsmx6jzdf80")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + #~(list "-k" (string-append + ;; Disable tests requiring python-ruff. + "not test_docs_examples[docs/index.md:24-83]" + " and not test_docs_examples[docs/index.md:113-137]" + " and not test_docs_examples[docs/index.md:148-156]" + " and not test_docs_examples[docs/index.md:173-183]" + " and not test_docs_examples[docs/index.md:193-201]" + " and not test_docs_examples[docs/index.md:212-243]" + " and not test_docs_examples[docs/index.md:286-317]" + " and not test_docs_examples[docs/index.md:331-372]" + " and not test_docs_examples[docs/index.md:430-439]" + " and not test_docs_examples[docs/index.md:453-459]" + " and not test_docs_examples[docs/index.md:514-522]" + " and not test_docs_examples[docs/index.md:547-549]" + " and not test_docs_examples[docs/index.md:553-585]" + " and not test_docs_examples[docs/index.md:620-645]" + " and not test_docs_examples[docs/index.md:654-732]" + " and not test_docs_examples[docs/index.md:738-772]")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'relax-requirements + (lambda _ + (substitute* "pyproject.toml" + ;; hatchling.build failed on this line with error: + ;; ValueError: Unknown classifier in field + ;; `project.classifiers`: Framework :: Pydantic :: 2 + (("'Framework :: Pydantic :: 2',") "") + ;; python-dotenv>=0.21.0 + ((">=0.21.0") ">=0.20.0")))) + (add-before 'check 'set-home + (lambda _ + ;; FileNotFoundError: [Errno 2] No such file or directory: + ;; '/homeless-shelter/ + (setenv "HOME" "/tmp")))))) + (propagated-inputs + (list python-dotenv + python-pydantic-2 + python-pyaml + python-tomli)) + (native-inputs + (list python-hatchling + python-pytest + python-pytest-examples + python-pytest-mock)) + (home-page "https://docs.pydantic.dev/latest/usage/pydantic_settings/") + (synopsis "Settings management using Pydantic") + (description + "Pydantic Settings provides optional Pydantic features for loading a +settings or config class from environment variables or secrets files.") + (license license:expat))) + (define-public python-pydoc-markdown (package (name "python-pydoc-markdown")