unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: John Kehayias via Guix-patches via <guix-patches@gnu.org>
To: "52780@debbugs.gnu.org" <52780@debbugs.gnu.org>
Subject: [bug#52780] [PATCH v2] gnu: Add python-canvasapi.
Date: Tue, 11 Jan 2022 21:40:20 +0000	[thread overview]
Message-ID: <5yIzxI854z_hwfXEvFhTZRWu0L1oI3M5jCc6-gN40iFPW6vIqHk9ElrQkLcxxmBcrvR9M_buRv_oXJrydxdnKrwEN9vdT3_I_CKPqBSwA1M=@protonmail.com> (raw)
In-Reply-To: <uLq9C09DP7ZZppiRYayaK8_Yb34csTYJfXrxCJCO4GpQhDK0GFDXhZEz34zjnsjFTeFxoQ0UKhaPopdKksKGWhKoOGnzYUqzFD_KaWbozf0=@protonmail.com>

[-- Attachment #1: Type: text/plain, Size: 125 bytes --]

Updated after discussion on IRC to use the GitHub source which includes tests. native-input added to run the tests, all pass.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-python-canvasapi.patch --]
[-- Type: text/x-patch; name=0001-gnu-Add-python-canvasapi.patch, Size: 1730 bytes --]

From efae6b303534bd43ab8f7f260efbe17448cc677c Mon Sep 17 00:00:00 2001
From: John Kehayias <john.kehayias@protonmail.com>
Date: Tue, 11 Jan 2022 16:37:59 -0500
Subject: [PATCH] gnu: Add python-canvasapi.

* gnu/packages/python-web.scm (python-canvasapi): New variable.
---
 gnu/packages/python-web.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index aaf8a57f6f..416703c143 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -4264,6 +4264,30 @@ (define-public python-yarl
 for URL parsing and changing.")
     (license license:asl2.0)))
 
+(define-public python-canvasapi
+  (package
+    (name "python-canvasapi")
+    (version "2.2.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/ucfopen/canvasapi")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0i13wrq2czcaz3h98pvnsl237104v611y9636jf32b1nn76sbp0p"))))
+    (build-system python-build-system)
+    (propagated-inputs (list python-pytz python-requests))
+    (native-inputs (list python-requests-mock))
+    (home-page "https://github.com/ucfopen/canvasapi")
+    (synopsis "API wrapper for the Canvas LMS")
+    (description
+     "CanvasAPI is a Python library for accessing Instructure’s Canvas LMS API.
+The library enables developers to programmatically manage Canvas courses,
+users, gradebooks, and more.")
+    (license license:expat)))
+
 (define-public python-google
   (package
     (name "python-google")
-- 
2.34.0


  reply	other threads:[~2022-01-11 21:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-24 15:44 [bug#52780] [PATCH] gnu: Add python-canvasapi John Kehayias via Guix-patches via
2022-01-11 21:40 ` John Kehayias via Guix-patches via [this message]
2022-01-11 21:43   ` [bug#52780] [PATCH v3] " John Kehayias via Guix-patches via
2022-01-12 21:25     ` bug#52780: " Nicolas Goaziou

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to='5yIzxI854z_hwfXEvFhTZRWu0L1oI3M5jCc6-gN40iFPW6vIqHk9ElrQkLcxxmBcrvR9M_buRv_oXJrydxdnKrwEN9vdT3_I_CKPqBSwA1M=@protonmail.com' \
    --to=guix-patches@gnu.org \
    --cc=52780@debbugs.gnu.org \
    --cc=john.kehayias@protonmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).