Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/itunespy/, dev-python/itunespy/files/
Date: Mon, 04 Apr 2022 15:48:06
Message-Id: 1649087263.ce657e8afc6609d8fda3b29f1d9f2ff9181607c0.xgqt@gentoo
1 commit: ce657e8afc6609d8fda3b29f1d9f2ff9181607c0
2 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 3 20:49:13 2022 +0000
4 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 4 15:47:43 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce657e8a
7
8 dev-python/itunespy: new package; add version 1.6
9
10 Bug: https://github.com/deepjyoti30/ytmdl/issues/222
11 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
12
13 dev-python/itunespy/Manifest | 1 +
14 .../itunespy-1.6-setup.cfg-description_file.patch | 9 ++++++++
15 dev-python/itunespy/itunespy-1.6.ebuild | 27 ++++++++++++++++++++++
16 dev-python/itunespy/metadata.xml | 13 +++++++++++
17 4 files changed, 50 insertions(+)
18
19 diff --git a/dev-python/itunespy/Manifest b/dev-python/itunespy/Manifest
20 new file mode 100644
21 index 000000000000..eaf9e6ec9e6c
22 --- /dev/null
23 +++ b/dev-python/itunespy/Manifest
24 @@ -0,0 +1 @@
25 +DIST itunespy-1.6.tar.gz 9724 BLAKE2B c46ccfd00a3dec1772499d3299dae7c20355628176db4e660aca0b2b819b81423ac78ce55319c822c15e1c4bf0641c2fc3c4d9ba94dafad1ffdeb503be4f76f9 SHA512 d91428e23a71bdbc62e6b8126b379aa48f06a365056147cf30eb4fa6132243d35c8a8d6dc536174a53f206bf7bcb4dcebb5a3697fac0fd88cbcb38205202ad81
26
27 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
28 new file mode 100644
29 index 000000000000..5c65eeb354b7
30 --- /dev/null
31 +++ b/dev-python/itunespy/files/itunespy-1.6-setup.cfg-description_file.patch
32 @@ -0,0 +1,9 @@
33 +index 224a779..0f94f37 100644
34 +--- a/setup.cfg
35 ++++ b/setup.cfg
36 +@@ -1,2 +1,2 @@
37 + [metadata]
38 +-description-file = README.md
39 +\ No newline at end of file
40 ++description_file = README.md
41 +\ No newline at end of file
42
43 diff --git a/dev-python/itunespy/itunespy-1.6.ebuild b/dev-python/itunespy/itunespy-1.6.ebuild
44 new file mode 100644
45 index 000000000000..922c1e48abf7
46 --- /dev/null
47 +++ b/dev-python/itunespy/itunespy-1.6.ebuild
48 @@ -0,0 +1,27 @@
49 +# Copyright 1999-2022 Gentoo Authors
50 +# Distributed under the terms of the GNU General Public License v2
51 +
52 +EAPI=8
53 +
54 +DISTUTILS_USE_PEP517=setuptools
55 +PYTHON_COMPAT=( python3_{8..10} )
56 +
57 +inherit distutils-r1
58 +
59 +DESCRIPTION="A simple library to fetch data from the iTunes Store API"
60 +HOMEPAGE="https://github.com/sleepyfran/itunespy/"
61 +
62 +if [[ "${PV}" == *9999* ]] ; then
63 + inherit git-r3
64 + EGIT_REPO_URI="https://github.com/sleepyfran/${PN}.git"
65 +else
66 + SRC_URI="https://github.com/sleepyfran/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
67 + KEYWORDS="~amd64 ~x86"
68 +fi
69 +
70 +LICENSE="Apache-2.0"
71 +SLOT="0"
72 +
73 +RDEPEND="dev-python/requests[${PYTHON_USEDEP}]"
74 +
75 +PATCHES=( "${FILESDIR}"/${P}-setup.cfg-description_file.patch )
76
77 diff --git a/dev-python/itunespy/metadata.xml b/dev-python/itunespy/metadata.xml
78 new file mode 100644
79 index 000000000000..f449f0046a80
80 --- /dev/null
81 +++ b/dev-python/itunespy/metadata.xml
82 @@ -0,0 +1,13 @@
83 +<?xml version="1.0" encoding="UTF-8"?>
84 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
85 +
86 +<pkgmetadata>
87 + <maintainer type="person">
88 + <email>xgqt@g.o</email>
89 + <name>Maciej Barć</name>
90 + </maintainer>
91 + <upstream>
92 + <bugs-to>https://github.com/sleepyfran/itunespy/issues/</bugs-to>
93 + <remote-id type="github">sleepyfran/itunespy</remote-id>
94 + </upstream>
95 +</pkgmetadata>