summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-09-21 23:51:24 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-25 09:36:54 +0100
commit41142cf8daf3a3b2b2cb06410718f96f2048c61c (patch)
tree6f82a1dac4b4b03e6bdcabc6ba80cf50bc4c0aa6 /gnu/packages/python-xyz.scm
parente6b02796e3193c64a5fb576d4f43799567719ba4 (diff)
gnu: Add python-etcd3.
* gnu/packages/python-xyz.scm (python-etcd3): New variable. Change-Id: Ic41bfd08d26c549dcaab4043448fe93a506e7a95 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6d29f223f8..1f72682422 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -275,6 +275,7 @@
#:use-module (gnu packages rdf)
#:use-module (gnu packages readline)
#:use-module (gnu packages regex)
+ #:use-module (gnu packages rpc)
#:use-module (gnu packages rust)
#:use-module (gnu packages rust-apps)
#:use-module (gnu packages scanner)
@@ -5854,6 +5855,35 @@ command-line script you can get the latest strip of a webcomic, catch-up to the
downloaded, or download a strip for a particular date or index, if possible.")
(license license:expat)))
+(define-public python-etcd3
+ (package
+ (name "python-etcd3")
+ (version "0.12.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/kragniz/python-etcd3")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "06hw0kcl77v8px5w2hfnf2l9gjnjrspjb49kx3jqa382z7wzdkk0"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; XXX: Tests require the etcd package.
+ #:tests? #f
+ #:test-backend #~'custom
+ #:test-flags ; Taken from tox.ini.
+ #~(list "pifpaf" "-e" "python" "run" "etcd" "--cluster" "--" "pytest")))
+ (propagated-inputs (list python-grpcio python-protobuf python-tenacity))
+ (native-inputs (list python-mock python-pifpaf python-pytest python-setuptools))
+ (home-page "https://github.com/kragniz/python-etcd3")
+ (synopsis "Python client for the etcd3 API")
+ (description
+ "This package provide a Python client for the @code{etcd3} API.")
+ (license license:asl2.0)))
+
(define-public python-et-xmlfile
(package
(name "python-et-xmlfile")