guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 5553d551104304e5ee074eb4d55df04795a45162
Author: Nicolas Graves <[email protected]>
AuthorDate: Fri Oct 31 06:42:30 2025 +0100

    gnu: Add python-platformdirs-bootstrap.
    
    * gnu/packages/python-build.scm (python-platformdirs-bootstrap): New 
variable.
    * gnu/packages/python-xyz.scm (python-platformdirs): Add a comment.
    
    Change-Id: If9c296d498690f8c1fff585a6bb7ce4579434c79
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-build.scm | 27 +++++++++++++++++++++++++++
 gnu/packages/python-xyz.scm   |  2 ++
 2 files changed, 29 insertions(+)

diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm
index e12ecec45b..65d3874129 100644
--- a/gnu/packages/python-build.scm
+++ b/gnu/packages/python-build.scm
@@ -181,6 +181,33 @@ working with iterables.")
 matching of file paths.")
     (license license:mpl2.0)))
 
+(define-public python-platformdirs-bootstrap
+  ;; Try to update simultaneously with the standard version in
+  ;; (gnu packages python-build).
+  (package
+    (name "python-platformdirs-bootstrap")
+    (version "4.3.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "platformdirs" version))
+       (sha256
+        (base32 "01xrwajkmxv3jp6n14y8jndkrhb48p9kxknkmwch8nw8pjnb4zrm"))))
+    (build-system pyproject-build-system)
+    (arguments (list #:tests? #f))      ; avoid introducing more dependencies.
+    (native-inputs
+     (list python-hatchling
+           python-hatch-vcs
+           python-pytest-bootstrap))
+    (home-page "https://github.com/platformdirs/platformdirs";)
+    (synopsis "Determine the appropriate platform-specific directories")
+    (description "When writing applications, finding the right location to
+store user data and configuration varies per platform.  Even for
+single-platform apps, there may by plenty of nuances in figuring out the right
+location.  This small Python module determines the appropriate
+platform-specific directories, e.g. the ``user data dir''.")
+    (license license:expat)))
+
 (define-public python-pluggy
   (package
     (name "python-pluggy")
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b777a92a55..e8083bf24c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -33443,6 +33443,8 @@ statements in OFX files.")
     (license license:expat)))
 
 (define-public python-platformdirs
+  ;; Try to update simultaneously with the bootstrap version in
+  ;; (gnu packages python-build).
   (package
     (name "python-platformdirs")
     (version "4.3.6")

Reply via email to