summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-04-03 22:49:13 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-04-04 17:47:43 +0200
commitce657e8afc6609d8fda3b29f1d9f2ff9181607c0 (patch)
tree5097d410341cda3741c7b1c51992b88229f8956a /dev-python/itunespy
parentdev-python/pyDes: new package; add version 2.0.1 (diff)
downloadgentoo-ce657e8afc6609d8fda3b29f1d9f2ff9181607c0.tar.gz
gentoo-ce657e8afc6609d8fda3b29f1d9f2ff9181607c0.tar.bz2
gentoo-ce657e8afc6609d8fda3b29f1d9f2ff9181607c0.zip
dev-python/itunespy: new package; add version 1.6
Bug: https://github.com/deepjyoti30/ytmdl/issues/222 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-python/itunespy')
-rw-r--r--dev-python/itunespy/Manifest1
-rw-r--r--dev-python/itunespy/files/itunespy-1.6-setup.cfg-description_file.patch9
-rw-r--r--dev-python/itunespy/itunespy-1.6.ebuild27
-rw-r--r--dev-python/itunespy/metadata.xml13
4 files changed, 50 insertions, 0 deletions
diff --git a/dev-python/itunespy/Manifest b/dev-python/itunespy/Manifest
new file mode 100644
index 000000000000..eaf9e6ec9e6c
--- /dev/null
+++ b/dev-python/itunespy/Manifest
@@ -0,0 +1 @@
+DIST itunespy-1.6.tar.gz 9724 BLAKE2B c46ccfd00a3dec1772499d3299dae7c20355628176db4e660aca0b2b819b81423ac78ce55319c822c15e1c4bf0641c2fc3c4d9ba94dafad1ffdeb503be4f76f9 SHA512 d91428e23a71bdbc62e6b8126b379aa48f06a365056147cf30eb4fa6132243d35c8a8d6dc536174a53f206bf7bcb4dcebb5a3697fac0fd88cbcb38205202ad81
diff --git a/dev-python/itunespy/files/itunespy-1.6-setup.cfg-description_file.patch b/dev-python/itunespy/files/itunespy-1.6-setup.cfg-description_file.patch
new file mode 100644
index 000000000000..5c65eeb354b7
--- /dev/null
+++ b/dev-python/itunespy/files/itunespy-1.6-setup.cfg-description_file.patch
@@ -0,0 +1,9 @@
+index 224a779..0f94f37 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -1,2 +1,2 @@
+ [metadata]
+-description-file = README.md
+\ No newline at end of file
++description_file = README.md
+\ No newline at end of file
diff --git a/dev-python/itunespy/itunespy-1.6.ebuild b/dev-python/itunespy/itunespy-1.6.ebuild
new file mode 100644
index 000000000000..922c1e48abf7
--- /dev/null
+++ b/dev-python/itunespy/itunespy-1.6.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="A simple library to fetch data from the iTunes Store API"
+HOMEPAGE="https://github.com/sleepyfran/itunespy/"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/sleepyfran/${PN}.git"
+else
+ SRC_URI="https://github.com/sleepyfran/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+RDEPEND="dev-python/requests[${PYTHON_USEDEP}]"
+
+PATCHES=( "${FILESDIR}"/${P}-setup.cfg-description_file.patch )
diff --git a/dev-python/itunespy/metadata.xml b/dev-python/itunespy/metadata.xml
new file mode 100644
index 000000000000..f449f0046a80
--- /dev/null
+++ b/dev-python/itunespy/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xgqt@gentoo.org</email>
+ <name>Maciej Barć</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/sleepyfran/itunespy/issues/</bugs-to>
+ <remote-id type="github">sleepyfran/itunespy</remote-id>
+ </upstream>
+</pkgmetadata>