summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2022-05-17 13:39:41 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2022-05-17 14:19:31 +0200
commitaa5076d024d487dde1870d6cfd35c5e0e49b6cb0 (patch)
tree401dd142d4a59cd5478daebe2fb03ac866c7e8cb
parentdev-python/pytest-ordering: enable py3.11 (diff)
downloadgentoo-aa5076d024d487dde1870d6cfd35c5e0e49b6cb0.tar.gz
gentoo-aa5076d024d487dde1870d6cfd35c5e0e49b6cb0.tar.bz2
gentoo-aa5076d024d487dde1870d6cfd35c5e0e49b6cb0.zip
dev-python/bibtexparser: nose-->pytest, enable py3.11
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
-rw-r--r--dev-python/bibtexparser/bibtexparser-1.2.0-r1.ebuild31
1 files changed, 31 insertions, 0 deletions
diff --git a/dev-python/bibtexparser/bibtexparser-1.2.0-r1.ebuild b/dev-python/bibtexparser/bibtexparser-1.2.0-r1.ebuild
new file mode 100644
index 000000000000..0d1dd2ae0417
--- /dev/null
+++ b/dev-python/bibtexparser/bibtexparser-1.2.0-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1
+
+DESCRIPTION="A BibTeX parser written in python"
+HOMEPAGE="https://github.com/sciunto-org/python-bibtexparser"
+SRC_URI="
+ https://github.com/sciunto-org/python-bibtexparser/archive/v${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+S="${WORKDIR}/python-${P}"
+
+LICENSE="|| ( BSD LGPL-3 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-python/pyparsing[${PYTHON_USEDEP}]"
+
+distutils_enable_tests pytest
+
+src_prepare() {
+ # fixed in upstream 5f98bac62e8ff3c8ab6b956f288f1c61b99c6a5d
+ sed -e 's:unittest2:unittest:' \
+ -i bibtexparser/tests/test_crossref_resolving.py || die
+ distutils-r1_src_prepare
+}