summaryrefslogtreecommitdiff
path: root/dev-python/dateparser
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
commitbfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch)
tree0d7a74b4463ee387f9cf9368ceb1b757f694f72a /dev-python/dateparser
parentf716a9fe6455d39eef01e718aae68dae61c19704 (diff)
downloadbaldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
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.xml12
3 files changed, 75 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..670472c82d2a
--- /dev/null
+++ b/dev-python/dateparser/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>pastalian46@gmail.com</email>
+ <name>Takuya Wakazono</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">scrapinghub/dateparser</remote-id>
+ <remote-id type="pypi">dateparser</remote-id>
+ </upstream>
+</pkgmetadata>