diff options
Diffstat (limited to 'dev-python/endesive')
| -rw-r--r-- | dev-python/endesive/Manifest | 5 | ||||
| -rw-r--r-- | dev-python/endesive/endesive-2.19.3.ebuild | 71 | ||||
| -rw-r--r-- | dev-python/endesive/files/endesive-2.16-fontdir.patch | 22 | ||||
| -rw-r--r-- | dev-python/endesive/files/endesive-2.16-test-import.patch | 51 | ||||
| -rw-r--r-- | dev-python/endesive/metadata.xml | 12 |
5 files changed, 161 insertions, 0 deletions
diff --git a/dev-python/endesive/Manifest b/dev-python/endesive/Manifest new file mode 100644 index 000000000000..74e28f9f8772 --- /dev/null +++ b/dev-python/endesive/Manifest @@ -0,0 +1,5 @@ +AUX endesive-2.16-fontdir.patch 1027 BLAKE2B fcb7f9c6f185083d462714895df42398203a0bee7d3881287c463dac8919060db7f64d3c7444b4bb5e07947c536f945afe7a5686882b3c3718e4ef8b5e252b13 SHA512 9b233465675c93e973c76f75ab3c567e4e1297059403c0f4ae2de5fbccb94658f96fc246f14ab02b02a56faab92e3f6c4769d7830a8931adf1ce3cdd8e7c9f4a +AUX endesive-2.16-test-import.patch 1489 BLAKE2B d8f9536bda455b37ddd4ac668fb3a440983c68d7e455f7d0af21f81940f8039ab4682e8dbb980a1a804cacc65184b18a5c92c0595317407c134c5462c62884bd SHA512 aa4d5dd1b276f540fb202c886c6897b1b04312f23f0e90ed094199db1772f83c0fadb8c4bb87d7dee60bb72ed19c9448839b5962bf78af9069f9df896e1068cb +DIST endesive-2.19.3.gh.tar.gz 1155679 BLAKE2B 07f1ee881eeca88fd40ae1a13e34e406e9f20772bcd0207af56f320e147520661465a095b0f14f5491adf897db036c4ff1ebd50a7b9cb9ded7b4dff8a2e4a234 SHA512 3393db78806f794cf8ce86fb8fba5a884e9eed034d4d3cbdeae557ac70e356dfbc6864fcd685e9401f94ac2c3828ca52ff57965bb24dd687a355953a4390ea32 +EBUILD endesive-2.19.3.ebuild 1504 BLAKE2B e9a9e4d4fe4eeaa74f3548d8a42d906dcb4e72fcd0f3982673ee2acf1d8edabf24acd4aa90927534d1b9026cc35d3babf4048ed590674a55a0054298c445dcdc SHA512 1ef15d3e2167346010803e8d0a0782c6d78e7668b7e66e73603082052676b5dbf9f8b9251c0b456f0690e87f12b16800b49359e7d0ea75699712824e48dd6eed +MISC metadata.xml 439 BLAKE2B 39552624633ce5fabc8a01f9cea5f854563bf8aaeb0bd4bb5cd6b762f48f97324eda08a74293cabbfaa1f5a37bc06b98ddb0d24ea4f57ae0b03aa34f47a7f31b SHA512 61dccb6c94eee4ec931131dcf3da2d3b16fb56b0fefc4e33e54500c3c05ea8e0623d2ffdfc0e034c6248f279bbb9e818047805ed35518013722456eb094cc82a diff --git a/dev-python/endesive/endesive-2.19.3.ebuild b/dev-python/endesive/endesive-2.19.3.ebuild new file mode 100644 index 000000000000..45505e7ac942 --- /dev/null +++ b/dev-python/endesive/endesive-2.19.3.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 + +DESCRIPTION="Sign and verify digital signatures in mail, PDF and XML documents" +HOMEPAGE=" + https://pypi.org/project/endesive/ + https://github.com/m32/endesive +" + +SRC_URI="https://github.com/m32/endesive/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" +LICENSE="MIT LGPL-3 BSD" +SLOT="0" +KEYWORDS="amd64" +IUSE="examples" + +RDEPEND=" + dev-python/asn1crypto[${PYTHON_USEDEP}] + dev-python/attrs[${PYTHON_USEDEP}] + dev-python/certifi[${PYTHON_USEDEP}] + dev-python/cryptography[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/paramiko[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pykcs11[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-libs/softhsm + media-fonts/dejavu + ) +" + +DOCS=( README.rst ) + +PATCHES=( + "${FILESDIR}/${PN}-2.16-test-import.patch" + "${FILESDIR}/${PN}-2.16-fontdir.patch" +) + +distutils_enable_tests unittest +distutils_enable_sphinx docs \ + dev-python/sphinx-rtd-theme + +src_prepare() { + default + + # Missing ssh agent + sed -i -re \ + 's/def (test_ssh_sign|test_ssh_verify)/def _\1/' \ + tests/test_hsm.py || die + # Requires network + sed -i -re \ + 's/def (test_pdf_timestamp)/def _\1/' \ + tests/test_pdf.py || die +} + +python_install_all() { + if use examples; then + dodoc -r examples + fi + + distutils-r1_python_install_all +} diff --git a/dev-python/endesive/files/endesive-2.16-fontdir.patch b/dev-python/endesive/files/endesive-2.16-fontdir.patch new file mode 100644 index 000000000000..9777cca6c54b --- /dev/null +++ b/dev-python/endesive/files/endesive-2.16-fontdir.patch @@ -0,0 +1,22 @@ +--- a/examples/pdf-sign-cms-hsm-signature_manual.py ++++ b/examples/pdf-sign-cms-hsm-signature_manual.py +@@ -100,7 +100,7 @@ def main(): + 'DancingScript', 7, 25, 270, 50, 12, True, 'left', 'top', 1.2], + ], + "manual_fonts": { +- 'DancingScript': '/usr/share/fonts/truetype/dejavu/DejaVuSansCondensed-Bold.ttf' ++ 'DancingScript': '/usr/share/fonts/dejavu/DejaVuSansCondensed-Bold.ttf' + }, + "contact": user.email, + "location": "Szczecin", +--- a/tests/test_pdf.py ++++ b/tests/test_pdf.py +@@ -190,7 +190,7 @@ class PDFTests(unittest.TestCase): + 'DancingScript', 7, 25, 270, 50, 12, True, 'left', 'top', 1.2], + ], + "manual_fonts": { +- 'DancingScript': '/usr/share/fonts/truetype/dejavu/DejaVuSansCondensed-Bold.ttf' ++ 'DancingScript': '/usr/share/fonts/dejavu/DejaVuSansCondensed-Bold.ttf' + }, + "contact": user.email, + "location": "Szczecin", diff --git a/dev-python/endesive/files/endesive-2.16-test-import.patch b/dev-python/endesive/files/endesive-2.16-test-import.patch new file mode 100644 index 000000000000..bb5ab20cbeaa --- /dev/null +++ b/dev-python/endesive/files/endesive-2.16-test-import.patch @@ -0,0 +1,51 @@ +commit 69fbd966a54a5199c96ccead9035e64b53f8db0e +Author: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de> +Date: Mon Oct 23 00:16:27 2023 +0200 +Upstream: https://github.com/m32/endesive/pull/153 + + use relative imports for tests + +--- a/tests/test_email.py ++++ b/tests/test_email.py +@@ -15,7 +15,7 @@ from endesive import email + import hashlib + from asn1crypto import cms, algos, core, pem + +-import test_cert ++from . import test_cert + + tests_root = os.path.dirname(__file__) + fixtures_dir = os.path.join(tests_root, 'fixtures') +--- a/tests/test_hsm.py ++++ b/tests/test_hsm.py +@@ -20,7 +20,7 @@ from cryptography.hazmat.primitives.serialization import pkcs12 + from endesive import hsm, signer, verifier + import PyKCS11 as PK11 + +-import test_cert ++from . import test_cert + + tests_root = os.path.dirname(__file__) + fixtures_dir = os.path.join(tests_root, 'fixtures') +--- a/tests/test_pdf.py ++++ b/tests/test_pdf.py +@@ -12,7 +12,7 @@ tests_root = os.path.dirname(__file__) + fixtures_dir = os.path.join(tests_root, 'fixtures') + + +-import test_cert ++from . import test_cert + + def fixture(fname): + return os.path.join(fixtures_dir, fname) +--- a/tests/test_plain.py ++++ b/tests/test_plain.py +@@ -10,7 +10,7 @@ from cryptography.hazmat import backends + from cryptography.hazmat.primitives.serialization import pkcs12 + from endesive import plain + +-import test_cert ++from . import test_cert + + tests_root = os.path.dirname(__file__) + fixtures_dir = os.path.join(tests_root, 'fixtures') diff --git a/dev-python/endesive/metadata.xml b/dev-python/endesive/metadata.xml new file mode 100644 index 000000000000..3a6fb2e89579 --- /dev/null +++ b/dev-python/endesive/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>marcin.deranek@slonko.net</email> + <name>Marcin Deranek</name> + </maintainer> + <upstream> + <bugs-to>https://github.com/m32/endesive/issues</bugs-to> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
