1 |
commit: 010f1d692a888206172ca525c0195200d23b4c92 |
2 |
Author: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Apr 15 22:37:03 2021 +0000 |
4 |
Commit: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com> |
5 |
CommitDate: Thu Apr 15 22:37:03 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/user/ssnb.git/commit/?id=010f1d69 |
7 |
|
8 |
Add python ldif module |
9 |
|
10 |
Signed-off-by: Samuel Bernardo <samuelbernardo.mail <AT> gmail.com> |
11 |
|
12 |
dev-python/ldif/Manifest | 3 +++ |
13 |
dev-python/ldif/ldif-4.1.1.ebuild | 44 +++++++++++++++++++++++++++++++++++++++ |
14 |
dev-python/ldif/metadata.xml | 13 ++++++++++++ |
15 |
3 files changed, 60 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/ldif/Manifest b/dev-python/ldif/Manifest |
18 |
new file mode 100644 |
19 |
index 0000000..0eb2133 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/ldif/Manifest |
22 |
@@ -0,0 +1,3 @@ |
23 |
+DIST ldif-4.1.1.tar.gz 7295 BLAKE2B a8ab5332097b8169eb734f9acd0dc977e07b65052d82442f4fcb4e9472975f4966dba1333f81a4a9896e72ccbeb88ce41e1a8b7688326aa1f2c4c740fcdc5e80 SHA512 bd648ab87642ec9efc05db613dbc5523c604ba68d2969fdd81555ad693bedbae7c239575e010d8bbae7adafc2bb0580d3985ee3d18aae68c1bd12888f508b7c8 |
24 |
+EBUILD ldif-4.1.1.ebuild 1049 BLAKE2B a096b9fa313e97889fc5474c1bb5882b2eda0a51430958715065949d1f23d96862e5033fbf9906aa9b218511c18957dd38283c4f71f2b37b391c7d6b168ac34c SHA512 485b65f95678a91ade454d647ba39359298f29a7e8c556afdb1b2a5150b68fcf7c35f7862f91e4cd4258ed6b7f918c3702af560d563a6c8116243b48bf865645 |
25 |
+MISC metadata.xml 439 BLAKE2B 1739b57eb3aa3b76a2f6323a729f54c09e4fef632f7ae1e13f5e290a1ba8b317d4e27d3c52c601280a4c76788549bb421374b08ac494c8e09bc19af32f7507a1 SHA512 bf13705a7d1d5eb89d9e9309d11deeecaadeeae96d86458042d3d542593fdeeb05995e9c64925f38b6754884072c4049014b28ad330ba9ad51c33cd1c011248b |
26 |
|
27 |
diff --git a/dev-python/ldif/ldif-4.1.1.ebuild b/dev-python/ldif/ldif-4.1.1.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000..2890b9d |
30 |
--- /dev/null |
31 |
+++ b/dev-python/ldif/ldif-4.1.1.ebuild |
32 |
@@ -0,0 +1,44 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+PYTHON_COMPAT=( pypy3 python3_{7,8,9} ) |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+DESCRIPTION="This is a fork of the ldif module from python-ldap with python3/unicode support." |
43 |
+HOMEPAGE="https://github.com/abilian/ldif" |
44 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
45 |
+ |
46 |
+LICENSE="Apache" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64" |
49 |
+ |
50 |
+RDEPEND=" |
51 |
+ dev-python/urllib3[${PYTHON_USEDEP}] |
52 |
+" |
53 |
+BDEPEND=" |
54 |
+ >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}] |
55 |
+ test? ( |
56 |
+ ${RDEPEND} |
57 |
+ dev-python/path-py[${PYTHON_USEDEP}] |
58 |
+ dev-python/flake8 |
59 |
+ dev-python/mypy |
60 |
+ dev-python/pytest |
61 |
+ ) |
62 |
+" |
63 |
+ |
64 |
+S="${WORKDIR}/${P}" |
65 |
+ |
66 |
+distutils_enable_tests pytest |
67 |
+ |
68 |
+python_test() { |
69 |
+ # Ignore the module from ${S}, use the one from ${BUILD_DIR} |
70 |
+ # Otherwise, ImportMismatchError may occur |
71 |
+ # https://github.com/gentoo/gentoo/pull/1622#issuecomment-224482396 |
72 |
+ # Override pytest options to skip flake8 |
73 |
+ pytest -vv --ignore=rst --override-ini="addopts=--doctest-modules" \ |
74 |
+ || die "tests failed with ${EPYTHON}" |
75 |
+} |
76 |
+ |
77 |
|
78 |
diff --git a/dev-python/ldif/metadata.xml b/dev-python/ldif/metadata.xml |
79 |
new file mode 100644 |
80 |
index 0000000..3bc4dbb |
81 |
--- /dev/null |
82 |
+++ b/dev-python/ldif/metadata.xml |
83 |
@@ -0,0 +1,13 @@ |
84 |
+<?xml version="1.0" encoding="UTF-8"?> |
85 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
86 |
+<pkgmetadata> |
87 |
+ <maintainer type="person"> |
88 |
+ <email>samuelbernardo.mail@×××××.com</email> |
89 |
+ <name>Samuel Bernardo</name> |
90 |
+ </maintainer> |
91 |
+ <upstream> |
92 |
+ <remote-id type="pypi">ldif</remote-id> |
93 |
+ <remote-id type="github">abilian/ldif</remote-id> |
94 |
+ <bugs-to>https://github.com/abilian/ldif/issues</bugs-to> |
95 |
+ </upstream> |
96 |
+</pkgmetadata> |