diff options
author | Samuel Bernardo <samuelbernardo.mail@gmail.com> | 2021-04-15 23:37:03 +0100 |
---|---|---|
committer | Samuel Bernardo <samuelbernardo.mail@gmail.com> | 2021-04-15 23:37:03 +0100 |
commit | 010f1d692a888206172ca525c0195200d23b4c92 (patch) | |
tree | 1c09eda3334dcd7e4d0103d7113ce1588fe6fa35 /dev-python | |
parent | Add missing dependencies to snooty-lextudio (diff) | |
download | ssnb-010f1d692a888206172ca525c0195200d23b4c92.tar.gz ssnb-010f1d692a888206172ca525c0195200d23b4c92.tar.bz2 ssnb-010f1d692a888206172ca525c0195200d23b4c92.zip |
Add python ldif module
Signed-off-by: Samuel Bernardo <samuelbernardo.mail@gmail.com>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/ldif/Manifest | 3 | ||||
-rw-r--r-- | dev-python/ldif/ldif-4.1.1.ebuild | 44 | ||||
-rw-r--r-- | dev-python/ldif/metadata.xml | 13 |
3 files changed, 60 insertions, 0 deletions
diff --git a/dev-python/ldif/Manifest b/dev-python/ldif/Manifest new file mode 100644 index 0000000..0eb2133 --- /dev/null +++ b/dev-python/ldif/Manifest @@ -0,0 +1,3 @@ +DIST ldif-4.1.1.tar.gz 7295 BLAKE2B a8ab5332097b8169eb734f9acd0dc977e07b65052d82442f4fcb4e9472975f4966dba1333f81a4a9896e72ccbeb88ce41e1a8b7688326aa1f2c4c740fcdc5e80 SHA512 bd648ab87642ec9efc05db613dbc5523c604ba68d2969fdd81555ad693bedbae7c239575e010d8bbae7adafc2bb0580d3985ee3d18aae68c1bd12888f508b7c8 +EBUILD ldif-4.1.1.ebuild 1049 BLAKE2B a096b9fa313e97889fc5474c1bb5882b2eda0a51430958715065949d1f23d96862e5033fbf9906aa9b218511c18957dd38283c4f71f2b37b391c7d6b168ac34c SHA512 485b65f95678a91ade454d647ba39359298f29a7e8c556afdb1b2a5150b68fcf7c35f7862f91e4cd4258ed6b7f918c3702af560d563a6c8116243b48bf865645 +MISC metadata.xml 439 BLAKE2B 1739b57eb3aa3b76a2f6323a729f54c09e4fef632f7ae1e13f5e290a1ba8b317d4e27d3c52c601280a4c76788549bb421374b08ac494c8e09bc19af32f7507a1 SHA512 bf13705a7d1d5eb89d9e9309d11deeecaadeeae96d86458042d3d542593fdeeb05995e9c64925f38b6754884072c4049014b28ad330ba9ad51c33cd1c011248b diff --git a/dev-python/ldif/ldif-4.1.1.ebuild b/dev-python/ldif/ldif-4.1.1.ebuild new file mode 100644 index 0000000..2890b9d --- /dev/null +++ b/dev-python/ldif/ldif-4.1.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( pypy3 python3_{7,8,9} ) + +inherit distutils-r1 + +DESCRIPTION="This is a fork of the ldif module from python-ldap with python3/unicode support." +HOMEPAGE="https://github.com/abilian/ldif" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/urllib3[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + dev-python/path-py[${PYTHON_USEDEP}] + dev-python/flake8 + dev-python/mypy + dev-python/pytest + ) +" + +S="${WORKDIR}/${P}" + +distutils_enable_tests pytest + +python_test() { + # Ignore the module from ${S}, use the one from ${BUILD_DIR} + # Otherwise, ImportMismatchError may occur + # https://github.com/gentoo/gentoo/pull/1622#issuecomment-224482396 + # Override pytest options to skip flake8 + pytest -vv --ignore=rst --override-ini="addopts=--doctest-modules" \ + || die "tests failed with ${EPYTHON}" +} + diff --git a/dev-python/ldif/metadata.xml b/dev-python/ldif/metadata.xml new file mode 100644 index 0000000..3bc4dbb --- /dev/null +++ b/dev-python/ldif/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>samuelbernardo.mail@gmail.com</email> + <name>Samuel Bernardo</name> + </maintainer> + <upstream> + <remote-id type="pypi">ldif</remote-id> + <remote-id type="github">abilian/ldif</remote-id> + <bugs-to>https://github.com/abilian/ldif/issues</bugs-to> + </upstream> +</pkgmetadata> |