summaryrefslogtreecommitdiff
path: root/chat/py-mastodon
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2018-10-01 16:31:11 +0000
committernia <nia@pkgsrc.org>2018-10-01 16:31:11 +0000
commitdf3dbca41e13ff3f05673c1730491e6f60b2b4a6 (patch)
tree58f8569eed9877633aa19b850c96ffe6c5e777b0 /chat/py-mastodon
parent0c51d33d3f5ec7487e2c9356576e90d324a2a5d0 (diff)
downloadpkgsrc-df3dbca41e13ff3f05673c1730491e6f60b2b4a6.tar.gz
chat/py-mastodon: Update to 1.3.1
Changes: Mastodon v2.4.3 compatibility: Keyword filter support: filters(), filter(), filters_apply(), filter_create(), filter_update(), filter_delete() Follow suggestions support: suggestions(), suggestion_delete() account_follow() now has "reblogs" parameter account_mute() now has "notifications" parameter Support for granular scopes Added status_reply() convenience function First attempt at basic Pleroma compatibility (Thanks deeunderscore) Several small fixes
Diffstat (limited to 'chat/py-mastodon')
-rw-r--r--chat/py-mastodon/Makefile4
-rw-r--r--chat/py-mastodon/distinfo11
-rw-r--r--chat/py-mastodon/patches/patch-mastodon_Mastodon.py18
3 files changed, 26 insertions, 7 deletions
diff --git a/chat/py-mastodon/Makefile b/chat/py-mastodon/Makefile
index 50737b918db..3435b0c2c3e 100644
--- a/chat/py-mastodon/Makefile
+++ b/chat/py-mastodon/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.6 2018/08/21 17:31:21 nia Exp $
+# $NetBSD: Makefile,v 1.7 2018/10/01 16:31:11 nia Exp $
-VERSION= 1.3.0
+VERSION= 1.3.1
DISTNAME= Mastodon.py-${VERSION}
PKGNAME= ${PYPKGPREFIX}-mastodon-${VERSION}
CATEGORIES= chat www python
diff --git a/chat/py-mastodon/distinfo b/chat/py-mastodon/distinfo
index 063470772e2..1ab86b3a8b1 100644
--- a/chat/py-mastodon/distinfo
+++ b/chat/py-mastodon/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2018/08/21 17:31:21 nia Exp $
+$NetBSD: distinfo,v 1.5 2018/10/01 16:31:11 nia Exp $
-SHA1 (Mastodon.py-1.3.0.tar.gz) = c8a65ed8d6f9a3e2d83c44373c164e737d1ead1a
-RMD160 (Mastodon.py-1.3.0.tar.gz) = a297b75c15619a5f5b72a3ca5f839ecc345016bb
-SHA512 (Mastodon.py-1.3.0.tar.gz) = 67a31e0673d016a65b9d8f37e471efcaf70417159b32bf2985bae4da1da3bb7058535b59cd16089c94d2e7d44069cba9c234244bcd53118535dc0ec03b4d504c
-Size (Mastodon.py-1.3.0.tar.gz) = 816693 bytes
+SHA1 (Mastodon.py-1.3.1.tar.gz) = 101164587179c1cf20a17c1a57960c1b1b8c8433
+RMD160 (Mastodon.py-1.3.1.tar.gz) = 703f45e4814e1a393946ba5decd11e1ba8b02fdd
+SHA512 (Mastodon.py-1.3.1.tar.gz) = affcc2f4915676e2b6cc1ac1a3dd30917ae6160962b9438232157b069e6fcbdcdda9126dddd8b58376eecda2da6b494ba2de9ddb97b6d7286687ea767f9b3e40
+Size (Mastodon.py-1.3.1.tar.gz) = 831977 bytes
+SHA1 (patch-mastodon_Mastodon.py) = d4330248d17d99dd4b5b401de9690f346220ed86
diff --git a/chat/py-mastodon/patches/patch-mastodon_Mastodon.py b/chat/py-mastodon/patches/patch-mastodon_Mastodon.py
new file mode 100644
index 00000000000..266ad45ba48
--- /dev/null
+++ b/chat/py-mastodon/patches/patch-mastodon_Mastodon.py
@@ -0,0 +1,18 @@
+$NetBSD: patch-mastodon_Mastodon.py,v 1.4 2018/10/01 16:31:11 nia Exp $
+
+Make this work with Pleroma, which grants all scopes regardless of
+what gets requested.
+
+--- mastodon/Mastodon.py.orig 2018-07-30 21:34:05.000000000 +0000
++++ mastodon/Mastodon.py
+@@ -428,10 +428,6 @@ class Mastodon:
+ if scope_set in received_scopes:
+ received_scopes += self.__SCOPE_SETS[scope_set]
+
+- if not set(scopes) <= set(received_scopes):
+- raise MastodonAPIError(
+- 'Granted scopes "' + " ".join(received_scopes) + '" do not contain all of the requested scopes "' + " ".join(scopes) + '".')
+-
+ if to_file is not None:
+ with open(to_file, 'w') as token_file:
+ token_file.write(response['access_token'] + '\n')