summaryrefslogtreecommitdiff
path: root/gnu/packages/python-web.scm
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-10-28 17:35:04 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-28 17:46:27 +0000
commitd498d4eb3392a7fb67cdf81905fca2a51a5947c8 (patch)
tree8eeed2c76896dfd242b251fb376dec399dc0c547 /gnu/packages/python-web.scm
parentf4f98591f62b4bfc92998e1ca6c6a97f0b51635a (diff)
gnu: Add python-cloudpathlib.
* gnu/packages/python-web.scm (python-cloudpathlib): New variable. Change-Id: Id8bd4c539b4b8fe5120717670b4c4e6552a1d399
Diffstat (limited to 'gnu/packages/python-web.scm')
-rw-r--r--gnu/packages/python-web.scm54
1 files changed, 54 insertions, 0 deletions
diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 92b3493e222..d877e964d66 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -316,6 +316,60 @@ and JSON.
@end itemize")
(license license:expat)))
+(define-public python-cloudpathlib
+ (package
+ (name "python-cloudpathlib")
+ (version "0.23.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/drivendataorg/cloudpathlib")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1dqwml269lpz51drgg3s27sqmvwa1vldw2rj34ssnqppcmc5h5lm"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; tests: 977 passed, 15 skipped, 8642 warnings
+ #:test-flags
+ #~(list "--numprocesses" (number->string (min 8 (parallel-job-count)))
+ ;; TODO: Package azure-identity (required for this file)
+ "--ignore=tests/test_azure_specific.py"
+ ;; TypeError: Retry.__init__() got an unexpected keyword
+ ;; argument 'timeout'
+ "--deselect=tests/test_gs_specific.py::test_timeout_and_retry")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-pytest-config
+ (lambda _
+ (substitute* "pyproject.toml"
+ (("addopts =.*") "")))))))
+ (native-inputs
+ (list ;; python-azure-identity
+ python-dotenv
+ python-flit-core
+ python-pydantic-2
+ python-pytest
+ python-pytest-cases
+ python-pytest-xdist
+ python-shortuuid
+ python-tenacity))
+ (propagated-inputs
+ (list python-azure-storage-blob
+ python-azure-storage-file-datalake
+ python-boto3
+ python-google-cloud-storage
+ python-typing-extensions))
+ (home-page "https://github.com/drivendataorg/cloudpathlib")
+ (synopsis "Pathlib-style classes for cloud storage services")
+ (description
+ "This package provides a Python library with classes that mimic
+@code{pathlib.Path}'s interface for URIs from different cloud storage
+services.")
+ (license license:expat)))
+
(define-public python-devpi-common
(package
(name "python-devpi-common")