1 |
commit: b4f4efb8211bfb51820e67a6c57054a09b457b4b |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 28 07:18:40 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 28 07:18:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4f4efb8 |
7 |
|
8 |
dev-python/python-xmlsec: add 1.3.12 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
dev-python/python-xmlsec/Manifest | 1 + |
13 |
.../python-xmlsec/python-xmlsec-1.3.12.ebuild | 43 ++++++++++++++++++++++ |
14 |
2 files changed, 44 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/python-xmlsec/Manifest b/dev-python/python-xmlsec/Manifest |
17 |
index 8b21cbd0881..d283c819e1c 100644 |
18 |
--- a/dev-python/python-xmlsec/Manifest |
19 |
+++ b/dev-python/python-xmlsec/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST python-xmlsec-1.3.11.tar.gz 75023 BLAKE2B 87fe4b47a9df6bc2fb2f1a459fa20240d9d5c92e0f7fa9bfc466e1fbfc0e3f12d90d01f5c7a6eac1389ea3252b8267a545203edf34c30117573bada9a7f5481a SHA512 fe0144d67edcad366b1d0f4615983f5630afd8f22aa056f46d1e6564f1c3114c0a469675e64a06591540515b0d12b5bf9304845f5138b24e15acaf4e5b861961 |
22 |
+DIST python-xmlsec-1.3.12.tar.gz 77722 BLAKE2B b5ecece8063b823cdbe4d58967d10026bdc6f3774954021a3739d579ba3c5a08130af1792921c7892e6bc3d00f88ac83ab30e862775e419e0dad40b990b10cbe SHA512 19c5e3bf58b4b0f8a1cca3e60c08348b02ae298620f8c02b8cfb325aecf0313cb2bd1af89507b754ebe4c35af3b031e232d15ddcd42deae0821c9c0d7571aa7c |
23 |
|
24 |
diff --git a/dev-python/python-xmlsec/python-xmlsec-1.3.12.ebuild b/dev-python/python-xmlsec/python-xmlsec-1.3.12.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..0d81ac88bf6 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/python-xmlsec/python-xmlsec-1.3.12.ebuild |
29 |
@@ -0,0 +1,43 @@ |
30 |
+# Copyright 2021 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..10} ) |
36 |
+inherit distutils-r1 |
37 |
+ |
38 |
+DESCRIPTION="Python bindings for the XML Security Library" |
39 |
+HOMEPAGE="https://github.com/mehcode/python-xmlsec" |
40 |
+SRC_URI="https://github.com/mehcode/python-xmlsec/archive/${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="MIT" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~amd64 ~ppc64 ~x86" |
45 |
+ |
46 |
+RDEPEND="dev-libs/xmlsec:= |
47 |
+ dev-python/lxml[${PYTHON_USEDEP}]" |
48 |
+DEPEND="${RDEPEND}" |
49 |
+BDEPEND="dev-python/pkgconfig[${PYTHON_USEDEP}] |
50 |
+ dev-python/wheel[${PYTHON_USEDEP}] |
51 |
+ test? ( |
52 |
+ dev-python/hypothesis[${PYTHON_USEDEP}] |
53 |
+ )" |
54 |
+ |
55 |
+PATCHES=( |
56 |
+ "${FILESDIR}/${PN}-1.3.11-fix-xml-testfail.patch" |
57 |
+) |
58 |
+ |
59 |
+EPYTEST_DESELECT=( |
60 |
+ # Fragile based on black version? |
61 |
+ tests/test_type_stubs.py::test_xmlsec_constants_stub |
62 |
+) |
63 |
+ |
64 |
+distutils_enable_tests --install pytest |
65 |
+ |
66 |
+python_prepare_all() { |
67 |
+ sed -e "s:use_scm_version=.*:version='${PV}',:" \ |
68 |
+ -e "/setup_requires/ d" \ |
69 |
+ -i setup.py || die |
70 |
+ |
71 |
+ distutils-r1_python_prepare_all |
72 |
+} |