commit:     c49b3f0fda53e97922a5217fc54b45b9741fe6d0
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 29 05:18:36 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Mar 29 05:18:36 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c49b3f0f

dev-python/rdflib: Bump to 7.1.4

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/rdflib/Manifest            |  1 +
 dev-python/rdflib/rdflib-7.1.4.ebuild | 72 +++++++++++++++++++++++++++++++++++
 2 files changed, 73 insertions(+)

diff --git a/dev-python/rdflib/Manifest b/dev-python/rdflib/Manifest
index 83052ff39336..e4c65ebc559d 100644
--- a/dev-python/rdflib/Manifest
+++ b/dev-python/rdflib/Manifest
@@ -1 +1,2 @@
 DIST rdflib-7.1.3.gh.tar.gz 5029906 BLAKE2B 
4eff2756acfe636403ccf1cc8c11850e99385f444e1d80ca1a0ee6c04e1f5352df745a1c27a159a8740eb7a950211824ab51820e54830cec5e279e3d2a1a838f
 SHA512 
ed735611719cfab7da636cf57b02456c26ee7732c18508e1382bc722cba3a0206ca5dcb4ad8cd2ebc0e5550038c5571fb1b0195b9fae172f768cbab72db2b621
+DIST rdflib-7.1.4.gh.tar.gz 5031847 BLAKE2B 
e16d6f5a37925cbc81d6a7ad0c883404a8ed8c89e562bf836ea61ae27005fe2b9fb714cd259ae2718649853642f09e147531dfce97be43d0e2c844561d7de88f
 SHA512 
dcdf31ee0ed5e1b68e650155996e139e9160be0598189d41dbfe2734a50679d4dacad2fc887a30e51bc2c1dee1878291f01c374e17d6e4175b30b69ff73bba60

diff --git a/dev-python/rdflib/rdflib-7.1.4.ebuild 
b/dev-python/rdflib/rdflib-7.1.4.ebuild
new file mode 100644
index 000000000000..fbbf708e8ef9
--- /dev/null
+++ b/dev-python/rdflib/rdflib-7.1.4.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=poetry
+PYTHON_COMPAT=( python3_{10..13} )
+PYTHON_REQ_USE="sqlite?,threads(+)"
+
+inherit distutils-r1
+
+DESCRIPTION="RDF library containing a triple store and parser/serializer"
+HOMEPAGE="
+       https://github.com/RDFLib/rdflib/
+       https://pypi.org/project/rdflib/
+"
+# tests removed in 7.1.2
+SRC_URI="
+       https://github.com/RDFLib/rdflib/archive/${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~sparc ~x86"
+IUSE="examples sqlite"
+
+RDEPEND="
+       $(python_gen_cond_dep '
+               <dev-python/isodate-1[${PYTHON_USEDEP}]
+               >=dev-python/isodate-0.7.2[${PYTHON_USEDEP}]
+       ' 3.10)
+       dev-python/html5lib[${PYTHON_USEDEP}]
+       <dev-python/pyparsing-4[${PYTHON_USEDEP}]
+       >=dev-python/pyparsing-3.2.0[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       test? (
+               dev-python/requests[${PYTHON_USEDEP}]
+       )
+"
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+       distutils-r1_python_prepare_all
+
+       # doctests require internet
+       sed -i -e '/doctest-modules/d' pyproject.toml || die
+
+       # we disable pytest-cov
+       sed -i -e 's@, no_cover: None@@' test/test_misc/test_plugins.py || die
+
+       # allow regular html5lib, html5rdf is a fork with minimal changes:
+       # removing six dep (which is kinda good) and bundling webencodings
+       # (which is horrible)
+       find -name '*.py' -exec sed -i -e 's:html5rdf:html5lib:g' {} + || die
+}
+
+python_test() {
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest -m "not webtest"
+}
+
+python_install_all() {
+       distutils-r1_python_install_all
+
+       if use examples; then
+               dodoc -r examples
+               docompress -x /usr/share/doc/${PF}/examples
+       fi
+}

Reply via email to