summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-python/deezer/Manifest2
-rw-r--r--dev-python/deezer/deezer-5.1.1.ebuild (renamed from dev-python/deezer/deezer-4.1.0.ebuild)8
-rw-r--r--dev-python/deezer/files/4.1.0-feat-deserialize-datetime.patch27
3 files changed, 3 insertions, 34 deletions
diff --git a/dev-python/deezer/Manifest b/dev-python/deezer/Manifest
index e8227385..1b1170f3 100644
--- a/dev-python/deezer/Manifest
+++ b/dev-python/deezer/Manifest
@@ -1 +1 @@
-DIST v4.1.0.tar.gz 272785 BLAKE2B fcd2bbbd23459f5bd0ebabbb0200262d9bc589fad0af46eed24b3eea3b4adb6cbd7c24b5ed6afaf4a60f7a3e8be20da225c062e4886d376a159adb2b34f6dec0 SHA512 e851afa95c54d85e5f277f9cd385fe5e7e15336cc255b6bb18615bb0662854bee80f6be3cf6edacd20a41c827ce7bad1ea40923801b1e92c1bd27c3cb2c4a913
+DIST v5.1.1.tar.gz 307696 BLAKE2B b25859d45c03253348dd7bea50f0977c7e9e89c6f65e50879ab6c4eea3ff682b214567f1507650ef29e34b24804bc78f60111ca8270e4e15263437ac51179aa1 SHA512 0d74bf433fd2c0474eb74c19488f24734b480ccf9ed4fdd335dd5a7576d2e858e5e858b6a3862cc62df06380ceb7a57849ad272662ebffc837e4a9be708370ff
diff --git a/dev-python/deezer/deezer-4.1.0.ebuild b/dev-python/deezer/deezer-5.1.1.ebuild
index 350ab4ea..fb06664c 100644
--- a/dev-python/deezer/deezer-4.1.0.ebuild
+++ b/dev-python/deezer/deezer-5.1.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2021 Gentoo Authors
+# Copyright 2021-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -15,14 +15,10 @@ LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
-DEPEND="dev-python/requests:="
+DEPEND="dev-python/requests[${PYTHON_USEDEP}]"
RDEPEND="${DEPEND}"
BDEPEND="dev-python/sphinx:="
S="${WORKDIR}/${PN}-python-${PV}"
-PATCHES=(
- "${FILESDIR}/${PV}-feat-deserialize-datetime.patch"
-)
-
distutils_enable_tests pytest
diff --git a/dev-python/deezer/files/4.1.0-feat-deserialize-datetime.patch b/dev-python/deezer/files/4.1.0-feat-deserialize-datetime.patch
deleted file mode 100644
index ceb8dd59..00000000
--- a/dev-python/deezer/files/4.1.0-feat-deserialize-datetime.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 0b8b41f4fadc3479ae4c4c32fe396b7b1f2e9463 Mon Sep 17 00:00:00 2001
-From: Bertrand Jacquin <bertrand@jacquin.bzh>
-Date: Sun, 28 Nov 2021 04:23:54 +0000
-Subject: [PATCH] feat: deserialize datetime
-
-deezer.get_user().as_dict() leads to be following exception:
-
- TypeError: Object of type date is not JSON serializable
-
-This commit provide a deserialization of datetime objec to iso format.
----
- deezer/resources.py | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/deezer/resources.py b/deezer/resources.py
-index 06f57061fbee..5f03d8c7a473 100644
---- a/deezer/resources.py
-+++ b/deezer/resources.py
-@@ -54,6 +54,8 @@ class Resource:
- value = [i.as_dict() if isinstance(i, Resource) else i for i in value]
- if isinstance(value, Resource):
- value = value.as_dict()
-+ if isinstance(value, dt.date):
-+ value = value.isoformat()
- result[key] = value
- return result
-