Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-xmlsec/
Date: Sat, 26 Feb 2022 11:39:48
Message-Id: 1645875581.2c6b2361f4819c12e064f4ae94ef2c42b5d8dbe9.mgorny@gentoo
1 commit: 2c6b2361f4819c12e064f4ae94ef2c42b5d8dbe9
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 26 11:31:44 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 26 11:39:41 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c6b2361
7
8 dev-python/python-xmlsec: Migrate to PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../python-xmlsec/python-xmlsec-1.3.12-r1.ebuild | 44 ++++++++++++++++++++++
13 1 file changed, 44 insertions(+)
14
15 diff --git a/dev-python/python-xmlsec/python-xmlsec-1.3.12-r1.ebuild b/dev-python/python-xmlsec/python-xmlsec-1.3.12-r1.ebuild
16 new file mode 100644
17 index 000000000000..a2fd13f2a349
18 --- /dev/null
19 +++ b/dev-python/python-xmlsec/python-xmlsec-1.3.12-r1.ebuild
20 @@ -0,0 +1,44 @@
21 +# Copyright 2021-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{8..10} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Python bindings for the XML Security Library"
32 +HOMEPAGE="https://github.com/mehcode/python-xmlsec"
33 +SRC_URI="https://github.com/mehcode/python-xmlsec/archive/${PV}.tar.gz -> ${P}.tar.gz"
34 +
35 +LICENSE="MIT"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~ppc64 ~x86"
38 +
39 +RDEPEND="
40 + dev-libs/xmlsec:=
41 + dev-python/lxml[${PYTHON_USEDEP}]
42 +"
43 +DEPEND="${RDEPEND}"
44 +BDEPEND="
45 + dev-python/pkgconfig[${PYTHON_USEDEP}]
46 + dev-python/setuptools_scm[${PYTHON_USEDEP}]
47 + dev-python/wheel[${PYTHON_USEDEP}]
48 + test? (
49 + dev-python/hypothesis[${PYTHON_USEDEP}]
50 + )
51 +"
52 +
53 +PATCHES=(
54 + "${FILESDIR}/${PN}-1.3.11-fix-xml-testfail.patch"
55 +)
56 +
57 +EPYTEST_DESELECT=(
58 + # Fragile based on black version?
59 + tests/test_type_stubs.py::test_xmlsec_constants_stub
60 +)
61 +
62 +distutils_enable_tests pytest
63 +
64 +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}