summaryrefslogtreecommitdiff
path: root/dev-python/dateparser
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 16:47:34 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 16:47:34 -0500
commitdda948891d3731927b821ce31f9d9a2d03ba20c5 (patch)
tree99cd40be4cbb0606260da212cd81b8ab2db9da9b /dev-python/dateparser
parenta3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (diff)
downloadbaldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.gz
baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.xz
baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.zip
Adding metadata
Diffstat (limited to 'dev-python/dateparser')
-rw-r--r--dev-python/dateparser/Manifest1
-rw-r--r--dev-python/dateparser/dateparser-1.3.0.ebuild62
-rw-r--r--dev-python/dateparser/metadata.xml9
3 files changed, 72 insertions, 0 deletions
diff --git a/dev-python/dateparser/Manifest b/dev-python/dateparser/Manifest
new file mode 100644
index 000000000000..335d703a1f71
--- /dev/null
+++ b/dev-python/dateparser/Manifest
@@ -0,0 +1 @@
+DIST dateparser-1.3.0.tar.gz 337152 BLAKE2B e0a1ec6d9f6097d46fb9924665be0ec483481bb4abce5d715953374c5cc82f1ef7f4323f56f6656f21a877098a849ade729ee594236cb05a6a1036b187a793a1 SHA512 6fe258a8e22c70e19df67230cc86a19006640747d1539be1391eb7fefcb93abaa91fa7b6e42d1c6fc00a4ac82d007e8e63de6e13c4c5a113018cf8eac5402df6
diff --git a/dev-python/dateparser/dateparser-1.3.0.ebuild b/dev-python/dateparser/dateparser-1.3.0.ebuild
new file mode 100644
index 000000000000..0b4cc57b2029
--- /dev/null
+++ b/dev-python/dateparser/dateparser-1.3.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2026 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
+
+DESCRIPTION="Date parsing library designed to parse dates from HTML pages"
+HOMEPAGE="
+ https://pypi.org/project/dateparser/
+ https://github.com/scrapinghub/dateparser
+"
+
+LICENSE="BSD"
+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/convertdate[${PYTHON_USEDEP}]
+ dev-python/hijridate[${PYTHON_USEDEP}]
+ dev-python/langdetect[${PYTHON_USEDEP}]
+ dev-python/parameterized[${PYTHON_USEDEP}]
+)"
+
+EPYTEST_PLUGINS=()
+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}
+ )
+
+ epytest
+}
+
+pkg_postinst() {
+ optfeature "calendars support" "dev-python/hijridate dev-python/convertdate"
+ optfeature "fasttext support" "dev-libs/fastText[python]"
+ optfeature "langdetect support" dev-python/langdetect
+}
diff --git a/dev-python/dateparser/metadata.xml b/dev-python/dateparser/metadata.xml
new file mode 100644
index 000000000000..a83a6b5beb53
--- /dev/null
+++ b/dev-python/dateparser/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>pastalian46@gmail.com</email>
+ <name>Takuya Wakazono</name>
+ </maintainer>
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>