1 |
commit: 5cc78ffe1d655868869975a00231f96579f1c0cf |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 28 09:39:13 2023 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 28 10:01:36 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cc78ffe |
7 |
|
8 |
dev-python/moddb: new package, add 0.8.1 |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
11 |
|
12 |
dev-python/moddb/Manifest | 1 + |
13 |
dev-python/moddb/metadata.xml | 13 +++++++++ |
14 |
dev-python/moddb/moddb-0.8.1.ebuild | 54 +++++++++++++++++++++++++++++++++++++ |
15 |
3 files changed, 68 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/moddb/Manifest b/dev-python/moddb/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000000..355455da911e |
20 |
--- /dev/null |
21 |
+++ b/dev-python/moddb/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST moddb-0.8.1.gh.tar.gz 68417 BLAKE2B e013c6a2c315eb3f36ace6f37eadacd50a5854726cb6cbcbc6d16170bc1af06bf973d9874909ecb6e70c5a3cb896ef559eb6e915eed41217069fc3c7f468e57e SHA512 3557881f9bc33c911ba2e3d845a8294116c5ea394de4f24ab05a0d0af07ae000e972db9077fad8a1a30941a66b7f560cfce0616df93f1bae835efb51ee6035e2 |
24 |
|
25 |
diff --git a/dev-python/moddb/metadata.xml b/dev-python/moddb/metadata.xml |
26 |
new file mode 100644 |
27 |
index 000000000000..7fdd458f8299 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/moddb/metadata.xml |
30 |
@@ -0,0 +1,13 @@ |
31 |
+<?xml version="1.0" encoding="UTF-8"?> |
32 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
33 |
+<pkgmetadata> |
34 |
+ <maintainer type="person"> |
35 |
+ <email>andrewammerlaan@g.o</email> |
36 |
+ <name>Andrew Ammerlaan</name> |
37 |
+ </maintainer> |
38 |
+ <stabilize-allarches/> |
39 |
+ <upstream> |
40 |
+ <remote-id type="pypi">moddb</remote-id> |
41 |
+ <remote-id type="github">ClementJ18/moddb</remote-id> |
42 |
+ </upstream> |
43 |
+</pkgmetadata> |
44 |
|
45 |
diff --git a/dev-python/moddb/moddb-0.8.1.ebuild b/dev-python/moddb/moddb-0.8.1.ebuild |
46 |
new file mode 100644 |
47 |
index 000000000000..4d37fb8e9f73 |
48 |
--- /dev/null |
49 |
+++ b/dev-python/moddb/moddb-0.8.1.ebuild |
50 |
@@ -0,0 +1,54 @@ |
51 |
+# Copyright 1999-2023 Gentoo Authors |
52 |
+# Distributed under the terms of the GNU General Public License v2 |
53 |
+ |
54 |
+EAPI=8 |
55 |
+ |
56 |
+DISTUTILS_USE_PEP517=setuptools |
57 |
+PYTHON_COMPAT=( python3_{9..11} ) |
58 |
+ |
59 |
+inherit distutils-r1 |
60 |
+ |
61 |
+DESCRIPTION="Python scrapper to access ModDB mods, games and more as objects" |
62 |
+HOMEPAGE="https://github.com/ClementJ18/moddb" |
63 |
+SRC_URI="https://github.com/ClementJ18/moddb/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" |
64 |
+ |
65 |
+LICENSE="MIT" |
66 |
+SLOT="0" |
67 |
+KEYWORDS="~amd64" |
68 |
+ |
69 |
+# Connects to moddb.com |
70 |
+PROPERTIES="test_network" |
71 |
+RESTRICT="test" |
72 |
+ |
73 |
+RDEPEND=" |
74 |
+ dev-python/beautifulsoup4[${PYTHON_USEDEP}] |
75 |
+ dev-python/requests[${PYTHON_USEDEP}] |
76 |
+ dev-python/toolz[${PYTHON_USEDEP}] |
77 |
+ dev-python/pyrate-limiter[${PYTHON_USEDEP}] |
78 |
+" |
79 |
+ |
80 |
+BDEPEND="test? ( |
81 |
+ dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] |
82 |
+)" |
83 |
+ |
84 |
+EPYTEST_DESELECT=( |
85 |
+ # These tests require valid moddb.com login information |
86 |
+ "tests/test_base.py::TestLogin::test_login" |
87 |
+ "tests/test_client.py::TestClient::test_get_watched" |
88 |
+ "tests/test_client.py::TestClient::test_get_updates" |
89 |
+ "tests/test_client.py::TestClient::test_posts" |
90 |
+ "tests/test_client.py::TestClient::test_friends" |
91 |
+ "tests/test_client.py::TestClient::test_messages" |
92 |
+) |
93 |
+ |
94 |
+distutils_enable_sphinx docs/source dev-python/sphinx-autodoc-typehints |
95 |
+distutils_enable_tests pytest |
96 |
+ |
97 |
+python_test() { |
98 |
+ # Dummy moddb.com login information |
99 |
+ export USERNAME="portage" |
100 |
+ export SENDER_USERNAME="portage" |
101 |
+ export PASSWORD="testing" |
102 |
+ export SENDER_PASSWORD="testing" |
103 |
+ epytest |
104 |
+} |