diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-16 10:59:35 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-16 10:59:35 -0500 |
| commit | a46f0ec88e6c7ea84ed2f67a40bbf89ef44bc6af (patch) | |
| tree | 98303deb2a205a7f39cffa3a960c1762559c7a7d /dev-python/dateparser | |
| parent | 8e65dc62f3f9f6b8f7b890fefedbf4ac05dfde0b (diff) | |
| download | baldeagleos-repo-a46f0ec88e6c7ea84ed2f67a40bbf89ef44bc6af.tar.gz baldeagleos-repo-a46f0ec88e6c7ea84ed2f67a40bbf89ef44bc6af.tar.xz baldeagleos-repo-a46f0ec88e6c7ea84ed2f67a40bbf89ef44bc6af.zip | |
Adding metadata
Diffstat (limited to 'dev-python/dateparser')
| -rw-r--r-- | dev-python/dateparser/Manifest | 6 | ||||
| -rw-r--r-- | dev-python/dateparser/dateparser-1.3.0.ebuild | 62 | ||||
| -rw-r--r-- | dev-python/dateparser/dateparser-1.4.0.ebuild | 60 | ||||
| -rw-r--r-- | dev-python/dateparser/metadata.xml | 7 |
4 files changed, 100 insertions, 35 deletions
diff --git a/dev-python/dateparser/Manifest b/dev-python/dateparser/Manifest index 335d703a1f71..c1f85a3278f5 100644 --- a/dev-python/dateparser/Manifest +++ b/dev-python/dateparser/Manifest @@ -1 +1,5 @@ -DIST dateparser-1.3.0.tar.gz 337152 BLAKE2B e0a1ec6d9f6097d46fb9924665be0ec483481bb4abce5d715953374c5cc82f1ef7f4323f56f6656f21a877098a849ade729ee594236cb05a6a1036b187a793a1 SHA512 6fe258a8e22c70e19df67230cc86a19006640747d1539be1391eb7fefcb93abaa91fa7b6e42d1c6fc00a4ac82d007e8e63de6e13c4c5a113018cf8eac5402df6 +DIST dateparser-1.3.0.gh.tar.gz 535285 BLAKE2B 590408eb934ca45a523204955127bd4ec038ad17170dc167045a2a4e9799ca4f59f4231a3573138d5a75e5b6df54245eccc811e821dd30ef103c71e73048026e SHA512 dded28eb4f3fd837f683c9d08420099ac591ddb8f1d5128aeee7acf8db370f89d4a18ee6d8dab4ac8b904649fab27aa12fd833bacc37738d7977f0b7d9ee0c9c +DIST dateparser-1.4.0.gh.tar.gz 478376 BLAKE2B 25fe960731d9ff06894d9e775b2c5710de0b36255069869513b90dbae5022f082289e029a6bd536935a53519859fda30bd6aced5f7a30453b7b57eb923fda7af SHA512 d9871421555209bb302f3fa65ffe9d9c45ee421f0fe20bc040370e2a80832cbea884555c259eb0efed911033bd3e539fd045ee9f30c5d89e53c381d2e1ec0d8e +EBUILD dateparser-1.3.0.ebuild 1766 BLAKE2B 3cd85638829e69d1681f99e6e13ac180517b005134ba006d596392060f78e712a28bd48cb80ecb2d1682a41fddd9737a1a98474825222c886006e7e9dccc30b0 SHA512 012583f5c3caa7f7e47f7d07aec2f0fd4c55df4d9af99d61103f9c543cbaf9504bbf74439ac3157ffe951b47dc9fbe46348efa57490c757ebd2da779a9d77052 +EBUILD dateparser-1.4.0.ebuild 1766 BLAKE2B 3cd85638829e69d1681f99e6e13ac180517b005134ba006d596392060f78e712a28bd48cb80ecb2d1682a41fddd9737a1a98474825222c886006e7e9dccc30b0 SHA512 012583f5c3caa7f7e47f7d07aec2f0fd4c55df4d9af99d61103f9c543cbaf9504bbf74439ac3157ffe951b47dc9fbe46348efa57490c757ebd2da779a9d77052 +MISC metadata.xml 461 BLAKE2B 079fbcba6175c6211350e505b57f42392e1e06207af98cbe7accf832e3529967b7267989c63af80dae7ae998e0b54a06d3983f29d0a7dce3be0427f310d4a3c8 SHA512 d2ea96814d08ae7a058bfbe8c507dcaadb0095397f7b4dd79739ee6a9acb02db6c1db8936a9e6020e9fd90c6d499883699fe6e0e42a567720879c166d1695f1c diff --git a/dev-python/dateparser/dateparser-1.3.0.ebuild b/dev-python/dateparser/dateparser-1.3.0.ebuild index 0b4cc57b2029..95dedffa17d2 100644 --- a/dev-python/dateparser/dateparser-1.3.0.ebuild +++ b/dev-python/dateparser/dateparser-1.3.0.ebuild @@ -1,19 +1,17 @@ -# Copyright 1999-2026 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{13..14} ) DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 optfeature pypi +inherit distutils-r1 optfeature DESCRIPTION="Date parsing library designed to parse dates from HTML pages" -HOMEPAGE=" - https://pypi.org/project/dateparser/ - https://github.com/scrapinghub/dateparser -" +HOMEPAGE="https://github.com/scrapinghub/dateparser" +SRC_URI="https://github.com/scrapinghub/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" -LICENSE="BSD" +LICENSE="BSD-4" SLOT="0" KEYWORDS="~amd64" @@ -23,40 +21,40 @@ RDEPEND=" dev-python/regex[${PYTHON_USEDEP}] dev-python/tzlocal[${PYTHON_USEDEP}] " -BDEPEND="test? ( - dev-libs/fastText[python,${PYTHON_USEDEP}] - dev-python/convertdate[${PYTHON_USEDEP}] - dev-python/hijridate[${PYTHON_USEDEP}] - dev-python/langdetect[${PYTHON_USEDEP}] - dev-python/parameterized[${PYTHON_USEDEP}] -)" +BDEPEND=" + test? ( + dev-libs/fastText[python,${PYTHON_USEDEP}] + dev-python/gitpython[${PYTHON_USEDEP}] + dev-python/convertdate[${PYTHON_USEDEP}] + dev-python/hijridate[${PYTHON_USEDEP}] + dev-python/langdetect[${PYTHON_USEDEP}] + dev-python/parameterized[${PYTHON_USEDEP}] + dev-python/parsel[${PYTHON_USEDEP}] + dev-python/ruamel-yaml[${PYTHON_USEDEP}] + ) +" -EPYTEST_PLUGINS=() -distutils_enable_tests pytest +EPYTEST_DESELECT=( + dateparser/date.py::dateparser.date.DateDataParser.get_date_data + dateparser/search/__init__.py::dateparser.search.search_dates + # Tests that require network + tests/test_language_detect.py::CustomLangDetectParserTest::test_custom_language_detect_fast_text_{0,1} +) +distutils_enable_tests pytest distutils_enable_sphinx docs \ dev-python/sphinx-rtd-theme -python_test() { - # Need to set TZ when testing with gentoo docker images. - # Their /etc/{timezone,localtime} are inconsistent, which causes - # to tests to fail. - local -x TZ=UTC - - local EPYTEST_IGNORE=( - # tests that require network - tests/test_dateparser_data_integrity.py - ) - local EPYTEST_DESELECT=( - # tests that require network - tests/test_language_detect.py::CustomLangDetectParserTest::test_custom_language_detect_fast_text_{0,1} - ) +python_prepare_all() { + # Require atheris fuzzer + rm -rf fuzzing - epytest + distutils-r1_python_prepare_all } pkg_postinst() { optfeature "calendars support" "dev-python/hijridate dev-python/convertdate" optfeature "fasttext support" "dev-libs/fastText[python]" - optfeature "langdetect support" dev-python/langdetect + optfeature "operations on language files" dev-python/ruamel-yaml + optfeature "language detection support" dev-python/langdetect } diff --git a/dev-python/dateparser/dateparser-1.4.0.ebuild b/dev-python/dateparser/dateparser-1.4.0.ebuild new file mode 100644 index 000000000000..95dedffa17d2 --- /dev/null +++ b/dev-python/dateparser/dateparser-1.4.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{13..14} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 optfeature + +DESCRIPTION="Date parsing library designed to parse dates from HTML pages" +HOMEPAGE="https://github.com/scrapinghub/dateparser" +SRC_URI="https://github.com/scrapinghub/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="BSD-4" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/regex[${PYTHON_USEDEP}] + dev-python/tzlocal[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-libs/fastText[python,${PYTHON_USEDEP}] + dev-python/gitpython[${PYTHON_USEDEP}] + dev-python/convertdate[${PYTHON_USEDEP}] + dev-python/hijridate[${PYTHON_USEDEP}] + dev-python/langdetect[${PYTHON_USEDEP}] + dev-python/parameterized[${PYTHON_USEDEP}] + dev-python/parsel[${PYTHON_USEDEP}] + dev-python/ruamel-yaml[${PYTHON_USEDEP}] + ) +" + +EPYTEST_DESELECT=( + dateparser/date.py::dateparser.date.DateDataParser.get_date_data + dateparser/search/__init__.py::dateparser.search.search_dates + # Tests that require network + tests/test_language_detect.py::CustomLangDetectParserTest::test_custom_language_detect_fast_text_{0,1} +) + +distutils_enable_tests pytest +distutils_enable_sphinx docs \ + dev-python/sphinx-rtd-theme + +python_prepare_all() { + # Require atheris fuzzer + rm -rf fuzzing + + distutils-r1_python_prepare_all +} + +pkg_postinst() { + optfeature "calendars support" "dev-python/hijridate dev-python/convertdate" + optfeature "fasttext support" "dev-libs/fastText[python]" + optfeature "operations on language files" dev-python/ruamel-yaml + optfeature "language detection support" dev-python/langdetect +} diff --git a/dev-python/dateparser/metadata.xml b/dev-python/dateparser/metadata.xml index a83a6b5beb53..50ed9c725816 100644 --- a/dev-python/dateparser/metadata.xml +++ b/dev-python/dateparser/metadata.xml @@ -2,8 +2,11 @@ <!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="person"> - <email>pastalian46@gmail.com</email> - <name>Takuya Wakazono</name> + <email>marcin.deranek@slonko.net</email> + <name>Marcin Deranek</name> </maintainer> + <upstream> + <bugs-to>https://github.com/scrapinghub/dateparser/issues</bugs-to> + </upstream> <origin>baldeagleos-repo</origin> </pkgmetadata> |
