summaryrefslogtreecommitdiff
path: root/dev-python/moddb
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-10-23 14:39:50 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-10-23 14:39:50 +0100
commitf63d9a9a54cdeeaadc78e460b82f2c9895a69384 (patch)
treec670cb8eb532d97c0d547a9845a6c8c8edbc4070 /dev-python/moddb
parent386855c4d1ef509c1fd32abd721589c81669613b (diff)
gentoo auto-resync : 23:10:2023 - 14:39:50
Diffstat (limited to 'dev-python/moddb')
-rw-r--r--dev-python/moddb/Manifest2
-rw-r--r--dev-python/moddb/moddb-0.10.0.ebuild54
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-python/moddb/Manifest b/dev-python/moddb/Manifest
index 4a28eb7c824d..73dad04d581c 100644
--- a/dev-python/moddb/Manifest
+++ b/dev-python/moddb/Manifest
@@ -1,5 +1,7 @@
+DIST moddb-0.10.0.gh.tar.gz 14174575 BLAKE2B cffcdb27d3bd43da412d9ce689ba06d59ee013d4b78b75fddc8749243aaa6abb50c576811ef8e8e88c66ff41b578a79daec4ce0dbe56f444c94eeabedb0fef89 SHA512 5b21aea8a76c2b28579dbb3587956042126b65248684c2c6caef43793b8e7dd1d318434783c252ef191ee7832ea9fe1a434797797a9a76804133a53ede7674f9
DIST moddb-0.8.1.gh.tar.gz 68417 BLAKE2B e013c6a2c315eb3f36ace6f37eadacd50a5854726cb6cbcbc6d16170bc1af06bf973d9874909ecb6e70c5a3cb896ef559eb6e915eed41217069fc3c7f468e57e SHA512 3557881f9bc33c911ba2e3d845a8294116c5ea394de4f24ab05a0d0af07ae000e972db9077fad8a1a30941a66b7f560cfce0616df93f1bae835efb51ee6035e2
DIST moddb-0.9.0.gh.tar.gz 70547 BLAKE2B 34382e117d6dc184fb63626062b4b2cb11bb155a74069bc69688ad4696f8646fc5e214e0aeea64093ebedad0c032d263174692278d149468fffb44aabeec32dd SHA512 2735e0f34cb9efa74debf9be5aaad63911b0a2aaab38bca223598e29a560d2480fc03b56e8847a9fb14e80462b824054c58475e733a2ebc63ab2ec0eaa753c9f
+EBUILD moddb-0.10.0.ebuild 1464 BLAKE2B 703668ab2f410347f284f3e7d489c57ad288433f4f78e16f45d0e8a21a9fe361052d2ac6db6e20e25ea6b2ccf80b12133a5b9ee784dafcb548b530ab8438e881 SHA512 9e3ea8edb69ead715531e89d595f0a72a79aaf821dc78b24ff8d61842cc1477e403eb4d05e0ea3cbbaa781c34d083b027e45190cf250be2200a7a2b09b02aad5
EBUILD moddb-0.8.1.ebuild 1458 BLAKE2B 5b1fabbb87d5d7d964e70bc3f11ed2eca9f9ec1ffd6cafd53db525fa47b6f6f4ccbd98a9262b77e6dfc7293cd8ce1b28bff8f639ed41c996a4ed1282236f1613 SHA512 b41e8b0f939b9a491cfd8290659ea469e67fdf91b04b62cd9b5fc4632a7f672764188c881c6d00d97604c2a7d60d943167cf3110d6ee7c1347d30befa6853ed8
EBUILD moddb-0.9.0.ebuild 1464 BLAKE2B 703668ab2f410347f284f3e7d489c57ad288433f4f78e16f45d0e8a21a9fe361052d2ac6db6e20e25ea6b2ccf80b12133a5b9ee784dafcb548b530ab8438e881 SHA512 9e3ea8edb69ead715531e89d595f0a72a79aaf821dc78b24ff8d61842cc1477e403eb4d05e0ea3cbbaa781c34d083b027e45190cf250be2200a7a2b09b02aad5
MISC metadata.xml 407 BLAKE2B c1651872c2ae76f7adf6fd307c7b7b3c4ff5c9b7a193d58651648de31c63f9c24e35c178ac4fbed18c2bdd247cf2fd247e1a579a1dea92747f5545f155ef5595 SHA512 e24bb351e9a98d5c86694447a9c4007df28de831f4a570e998316d81688347f038cd802441f89ab9cdcc7b4ab7079096ca3c8ff590ac7bf5453e442186304d5d
diff --git a/dev-python/moddb/moddb-0.10.0.ebuild b/dev-python/moddb/moddb-0.10.0.ebuild
new file mode 100644
index 000000000000..588d82aa4a6c
--- /dev/null
+++ b/dev-python/moddb/moddb-0.10.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python scrapper to access ModDB mods, games and more as objects"
+HOMEPAGE="https://github.com/ClementJ18/moddb"
+SRC_URI="https://github.com/ClementJ18/moddb/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# Connects to moddb.com
+PROPERTIES="test_network"
+RESTRICT="test"
+
+RDEPEND="
+ dev-python/beautifulsoup4[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-python/toolz[${PYTHON_USEDEP}]
+ <dev-python/pyrate-limiter-3.0[${PYTHON_USEDEP}]
+"
+
+BDEPEND="test? (
+ dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
+)"
+
+EPYTEST_DESELECT=(
+ # These tests require valid moddb.com login information
+ "tests/test_base.py::TestLogin::test_login"
+ "tests/test_client.py::TestClient::test_get_watched"
+ "tests/test_client.py::TestClient::test_get_updates"
+ "tests/test_client.py::TestClient::test_posts"
+ "tests/test_client.py::TestClient::test_friends"
+ "tests/test_client.py::TestClient::test_messages"
+)
+
+distutils_enable_sphinx docs/source dev-python/sphinx-autodoc-typehints
+distutils_enable_tests pytest
+
+python_test() {
+ # Dummy moddb.com login information
+ export USERNAME="portage"
+ export SENDER_USERNAME="portage"
+ export PASSWORD="testing"
+ export SENDER_PASSWORD="testing"
+ epytest
+}