unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#52780] [PATCH] gnu: Add python-canvasapi.
@ 2021-12-24 15:44 John Kehayias via Guix-patches via
  2022-01-11 21:40 ` [bug#52780] [PATCH v2] " John Kehayias via Guix-patches via
  0 siblings, 1 reply; 4+ messages in thread
From: John Kehayias via Guix-patches via @ 2021-12-24 15:44 UTC (permalink / raw)
  To: 52780

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

This is a patch to add the canvasapi python package, that lets you communicate with Instructure's Canvas platform (used at universities for course materials). I've tested it builds and works.


[-- 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: 1774 bytes --]

From 4aa7894d3786c1fe490d97b4b05c267956302d83 Mon Sep 17 00:00:00 2001
From: John Kehayias <john.kehayias@protonmail.com>
Date: Fri, 24 Dec 2021 10:34:21 -0500
Subject: [PATCH] gnu: Add python-canvasapi.

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

diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm
index 61a34bfc63..d2026af2c6 100644
--- a/gnu/packages/python-web.scm
+++ b/gnu/packages/python-web.scm
@@ -47,6 +47,7 @@
 ;;; Copyright © 2021 Arun Isaac <arunisaac@systemreboot.net>
 ;;; Copyright © 2021 jgart <jgart@dismail.de>
 ;;; Copyright © 2021 Alice Brenon <alice.brenon@ens-lyon.fr>
+;;; Copyright © 2021 John Kehayias <john.kehayias@protonmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -4198,6 +4199,25 @@ (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 url-fetch)
+       (uri (pypi-uri "canvasapi" version))
+       (sha256
+        (base32 "0qizqj5l6bgfmw41hhh1d1iypv5y1lb3r6v0yks957dc7ivxp1sh"))))
+    (build-system python-build-system)
+    (propagated-inputs (list python-pytz python-requests))
+    (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.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-12 21:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-24 15:44 [bug#52780] [PATCH] gnu: Add python-canvasapi John Kehayias via Guix-patches via
2022-01-11 21:40 ` [bug#52780] [PATCH v2] " John Kehayias via Guix-patches via
2022-01-11 21:43   ` [bug#52780] [PATCH v3] " John Kehayias via Guix-patches via
2022-01-12 21:25     ` bug#52780: " Nicolas Goaziou

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).