unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Sharlatan Hellseher <sharlatanus@gmail.com>
To: 69924@debbugs.gnu.org
Cc: Sharlatan Hellseher <sharlatanus@gmail.com>,
	Lars-Dominik Braun <lars@6xq.net>, Marius Bakke <marius@gnu.org>,
	Munyoki Kilyungi <me@bonfacemunyoki.com>,
	Sharlatan Hellseher <sharlatanus@gmail.com>,
	Tanguy Le Carrour <tanguy@bioneland.org>,
	jgart <jgart@dismail.de>
Subject: [bug#69924] [PATCH 48/49] gnu: Add python-pydantic-settings.
Date: Wed, 20 Mar 2024 22:28:18 +0000	[thread overview]
Message-ID: <f0dea9ec523ddbb4a5941cd7ad3f37b66ac91c72.1710967275.git.sharlatanus@gmail.com> (raw)
In-Reply-To: <cover.1710967273.git.sharlatanus@gmail.com>

* 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")
-- 
2.41.0





  parent reply	other threads:[~2024-03-20 23:12 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-20 22:24 [bug#69924] [PATCH 00/49] gnu: Astronomy 2024/02 updates Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 01/49] gnu: calcmysky: Update to 0.3.2 Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 02/49] gnu: splash: Update to 3.10.3 Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 03/49] gnu: python-blosc: Move to python-compression Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 04/49] gnu: python-blosc: Simplify package Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 05/49] gnu: python-pytest-doctestplus: Update to 1.2.0 Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 06/49] gnu: python-pytest-arraydiff: Update to 0.6.1 Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 07/49] gnu: python-pytest-arraydiff: Enable tests Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 08/49] gnu: python-pytest-filter-subpackage: Update to 0.2.0 Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 09/49] gnu: python-zarr: Update to 2.17.1 Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 10/49] gnu: python-partd: Enable tests Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 11/49] gnu: python-zarr: Speed up tests Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 12/49] gnu: python-distributed: " Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 13/49] gnu: python-dask: " Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 14/49] gnu: python-stdatamodels: " Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 15/49] gnu: python-glymur: " Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 16/49] gnu: python-ginga: Update to 5.0.0 Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 17/49] gnu: python-astropy-iers-data: Update to 0.2024.3.18.0.29.47 Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 18/49] gnu: python-cdflib: Update to 1.2.6 Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 19/49] gnu: python-cdflib: Enable all tests Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 20/49] gnu: python-asdf-unit-schemas: Update to 0.2.0 Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 21/49] gnu: python-asdf-standard: Update to 1.1.1 Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 22/49] gnu: python-asdf-transform-schemas: Update to 0.5.0 Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 23/49] gnu: python-asdf: Update to 3.1.0 Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 24/49] gnu: python-asdf-coordinates-schemas: Update to 0.3.0 Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 25/49] gnu: python-asdf-wcs-schemas: Update to 0.4.0 Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 26/49] gnu: python-asdf-astropy: Update to 0.6.0 Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 27/49] gnu: python-pyvo: Update to 1.5.1 Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 28/49] gnu: python-astroquery: Update to 0.4.7 Sharlatan Hellseher
2024-03-20 22:27 ` [bug#69924] [PATCH 29/49] gnu: python-gwcs: Update to 0.21.0 Sharlatan Hellseher
2024-03-20 22:28 ` [bug#69924] [PATCH 30/49] gnu: python-drizzle: Update to 1.15.1 Sharlatan Hellseher
2024-03-20 22:28 ` [bug#69924] [PATCH 31/49] gnu: python-suntime: Update to 1.3.2 Sharlatan Hellseher
2024-03-20 22:28 ` [bug#69924] [PATCH 32/49] gnu: python-suntime: Refresh package style Sharlatan Hellseher
2024-03-20 22:28 ` [bug#69924] [PATCH 33/49] gnu: python-radiospectra: Update to 0.5.0 Sharlatan Hellseher
2024-03-20 22:28 ` [bug#69924] [PATCH 34/49] gnu: python-glymur: Update to 0.12.9 Sharlatan Hellseher
2024-03-20 22:28 ` [bug#69924] [PATCH 35/49] gnu: python-specutils: Update to 1.13.0 Sharlatan Hellseher
2024-03-20 22:28 ` [bug#69924] [PATCH 36/49] gnu: python-stcal: Update to 1.6.1 Sharlatan Hellseher
2024-03-20 22:28 ` [bug#69924] [PATCH 37/49] gnu: python-stcal: Enable sanity check Sharlatan Hellseher
2024-03-20 22:28 ` [bug#69924] [PATCH 38/49] gnu: python-stdatamodels: Update to 1.10.0 Sharlatan Hellseher
2024-03-20 22:28 ` [bug#69924] [PATCH 39/49] gnu: python-crds: Update to 11.17.19 Sharlatan Hellseher
2024-03-20 22:28 ` [bug#69924] [PATCH 40/49] gnu: python-pynbody: Update to 1.6.0 Sharlatan Hellseher
2024-03-20 22:28 ` [bug#69924] [PATCH 41/49] gnu: Add python-asdf-zarr Sharlatan Hellseher
2024-03-20 22:28 ` [bug#69924] [PATCH 42/49] gnu: Add python-asdf-compression Sharlatan Hellseher
2024-03-20 22:28 ` [bug#69924] [PATCH 43/49] gnu: Add python-astroplan Sharlatan Hellseher
2024-03-20 22:28 ` [bug#69924] [PATCH 44/49] gnu: Add python-nose-exclude Sharlatan Hellseher
2024-03-20 22:28 ` [bug#69924] [PATCH 45/49] gnu: Add python-ewah-bool-utils Sharlatan Hellseher
2024-03-20 22:28 ` [bug#69924] [PATCH 46/49] gnu: Add python-cmyt Sharlatan Hellseher
2024-03-20 22:28 ` [bug#69924] [PATCH 47/49] gnu: Add python-pytest-examples Sharlatan Hellseher
2024-03-20 22:28 ` Sharlatan Hellseher [this message]
2024-03-20 22:28 ` [bug#69924] [PATCH 49/49] gnu: python-hvpy: Update to 1.1.0 Sharlatan Hellseher
2024-03-29 15:11 ` bug#69924: [PATCH 00/49] gnu: Astronomy 2024/02 updates Sharlatan Hellseher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f0dea9ec523ddbb4a5941cd7ad3f37b66ac91c72.1710967275.git.sharlatanus@gmail.com \
    --to=sharlatanus@gmail.com \
    --cc=69924@debbugs.gnu.org \
    --cc=jgart@dismail.de \
    --cc=lars@6xq.net \
    --cc=marius@gnu.org \
    --cc=me@bonfacemunyoki.com \
    --cc=tanguy@bioneland.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).