all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Giacomo Leidi <goodoldpaul@autistici.org>
To: 45514@debbugs.gnu.org
Cc: Giacomo Leidi <goodoldpaul@autistici.org>
Subject: [bug#45514] [PATCH 7/8] gnu: Add python-zulip.
Date: Mon, 28 Dec 2020 22:32:44 +0100	[thread overview]
Message-ID: <20201228213245.12577-7-goodoldpaul@autistici.org> (raw)
In-Reply-To: <20201228213245.12577-1-goodoldpaul@autistici.org>

* gnu/packages/python-xyz.scm (python-zulip): New variable.
---
 gnu/packages/python-xyz.scm | 49 +++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8a00bebe3e..e25ebda63b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23328,3 +23328,52 @@ the output of Python’s cProfile module and an alternative to
 using the standard library pstats module.
 It was originally inspired by RunSnakeRun. ")
     (license license:bsd-3)))
+
+(define-public python-zulip
+  (package
+    (name "python-zulip")
+    (version "0.7.1")
+    (source
+     (origin
+       ;; There is no source on Pypi.
+       (method git-fetch)
+       (uri
+        (git-reference
+         (url "https://github.com/zulip/python-zulip-api")
+         (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0da1ki1v252avy27j6d7snnc0gyq0xa9fypm3qdmxhw2w79d6q36"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'cd-to-zulip-dir
+           (lambda _
+             (chdir "zulip")
+             #t))
+         (replace 'check
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (let ((test-zulip "../tools/test-zulip"))
+               (add-installed-pythonpath inputs outputs)
+               (setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH")))
+               (patch-shebang test-zulip)
+               (invoke test-zulip)))))))
+    (propagated-inputs
+     `(("python-matrix-client" ,python-matrix-client)
+       ("python-pyopenssl" ,python-pyopenssl)
+       ("python-requests" ,python-requests)
+       ("python-six" ,python-six)))
+    (native-inputs
+     `(("python-cython" ,python-cython)
+       ("python-distro" ,python-distro)
+       ("python-pytest" ,python-pytest)
+       ("python-setuptools" ,python-setuptools)))
+    (home-page
+     "https://github.com/zulip/python-zulip-api")
+    (synopsis
+     "Zulip's API Python bindings")
+    (description
+     "This package provides Zulip's API Python bindings.")
+    (license license:asl2.0)))
-- 
2.29.2





  parent reply	other threads:[~2020-12-28 21:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-28 21:30 [bug#45514] [PATCH] Add zulip-term and dependencies paul
2020-12-28 21:32 ` [bug#45514] [PATCH 1/8] gnu: python-urwid: Update to 2.1.1 Giacomo Leidi
2020-12-28 21:32   ` [bug#45514] [PATCH 2/8] gnu: Add python-urwid-readline Giacomo Leidi
2020-12-28 21:32   ` [bug#45514] [PATCH 3/8] gnu: Add python-matrix-client Giacomo Leidi
2020-12-28 21:32   ` [bug#45514] [PATCH 4/8] gnu: Add python-flake8-continuation Giacomo Leidi
2020-12-28 21:32   ` [bug#45514] [PATCH 5/8] gnu: Add python-flake8-quotes Giacomo Leidi
2020-12-28 21:32   ` [bug#45514] [PATCH 6/8] gnu: Add python-snakeviz Giacomo Leidi
2021-04-01 12:15     ` Efraim Flashner
2020-12-28 21:32   ` Giacomo Leidi [this message]
2020-12-28 21:32   ` [bug#45514] [PATCH 8/8] gnu: Add zulip-term Giacomo Leidi
2021-04-01 12:15 ` bug#45514: [PATCH] Add zulip-term and dependencies Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201228213245.12577-7-goodoldpaul@autistici.org \
    --to=goodoldpaul@autistici.org \
    --cc=45514@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.