guix_mirror_bot pushed a commit to branch master
in repository guix.

commit a04994529f9c73c610f1516f318af85042604e45
Author: Ghislain Vaillant <[email protected]>
AuthorDate: Sun Sep 28 11:59:20 2025 +0200

    gnu: Add python-universal-pathlib.
    
    * gnu/packages/python-xyz.scm (python-universal-pathlib): New variable.
    
    Change-Id: Ia72665f9d9cdf8d999127e023af7ad282c4533af
    Modified-by: Sharlatan Hellseher <[email protected]>
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 28c745d5ca..5a6c1c0939 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -38804,6 +38804,42 @@ multiple Unicode code points, e.g. \"G\" + 
acute-accent)
 @end enumerate")
     (license license:expat)))
 
+(define-public python-universal-pathlib
+  (package
+    (name "python-universal-pathlib")
+    (version "0.2.6")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/fsspec/universal_pathlib";)
+              (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0y2czk4civjjy9v8vhv6icivk4lapjcjzhdxjrrm3629apqja7wp"))))
+    (build-system pyproject-build-system)
+    (arguments
+     (list
+      #:tests? #f  ;requires network
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'set-version
+            (lambda _
+              (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
+    (native-inputs
+     (list python-setuptools
+           python-setuptools-scm))
+    (propagated-inputs
+     (list python-fsspec
+           python-pathlib-abc))
+    (home-page "https://github.com/fsspec/universal_pathlib";)
+    (synopsis
+     "@code{pathlib} API extended to use @code{fsspec} backends")
+    (description
+     "Universal Pathlib is a Python library that extends the 
@code{pathlib.Path}
+API to support a variety of backend filesystems via filesystem_spec.")
+    (license license:expat)))
+
 (define-public python-unpaddedbase64
   (package
     (name "python-unpaddedbase64")

Reply via email to