~ruther/guix-local

41142cf8daf3a3b2b2cb06410718f96f2048c61c — Nicolas Graves 6 months ago e6b0279
gnu: Add python-etcd3.

* gnu/packages/python-xyz.scm (python-etcd3): New variable.

Change-Id: Ic41bfd08d26c549dcaab4043448fe93a506e7a95
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 30 insertions(+), 0 deletions(-)

M gnu/packages/python-xyz.scm
M gnu/packages/python-xyz.scm => gnu/packages/python-xyz.scm +30 -0
@@ 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")