summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-m2crypto_0.45.0.bb
diff options
context:
space:
mode:
authorWang Mingyu <wangmy@fujitsu.com>2025-04-22 16:49:10 +0800
committerKhem Raj <raj.khem@gmail.com>2025-04-23 19:35:06 -0700
commita3bc118ed5430d61578ac2ad0164e44ae1ea93fc (patch)
treeb89318bd4bff947a810d02ce6eef616cadcece5d /meta-python/recipes-devtools/python/python3-m2crypto_0.45.0.bb
parent676d1ba1141869580503e02dc6b2d54a264acbc3 (diff)
downloadmeta-openembedded-a3bc118ed5430d61578ac2ad0164e44ae1ea93fc.tar.gz
python3-m2crypto: upgrade 0.44.0 -> 0.45.0
python3-m2crypto/0001-setup.py-Make-the-cmd-available.patch refreshed for 0.45.0 Changelog: =========== - chore: build Windows builds with Python 3.13 as well - fix: remove support for Engine - chore: mark actual license of the project BSD-2-Clause instead of wrong MIT - ci(Debian): make M2Crypto buildable on Debian - swig: Workaround for reading sys/select.h ending with wrong types. - ci: bump required setuptools version because of change in naming strategy - fix: add fix for build with older GCC - fix: remove AnyStr and Any types - chore: add .git-blame-ignore-revs - chore: blacken everything Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-m2crypto_0.45.0.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-m2crypto_0.45.0.bb52
1 files changed, 52 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-m2crypto_0.45.0.bb b/meta-python/recipes-devtools/python/python3-m2crypto_0.45.0.bb
new file mode 100644
index 0000000000..77f1f7df89
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-m2crypto_0.45.0.bb
@@ -0,0 +1,52 @@
1SUMMARY = "A Python crypto and SSL toolkit"
2HOMEPAGE = "https://gitlab.com/m2crypto/m2crypto"
3
4LICENSE = "MIT"
5LIC_FILES_CHKSUM = "file://LICENCE;md5=b0e1f0b7d0ce8a62c18b1287b991800e"
6
7SRC_URI[sha256sum] = "ffc10d4d09901514f408dc74f60a4d7df21c44ebc9bf776c947bfdc7359421cf"
8
9SRC_URI += " \
10 file://0001-setup.py-Make-the-cmd-available.patch \
11"
12
13inherit pypi siteinfo python_setuptools_build_meta
14
15DEPENDS += "openssl swig-native"
16RDEPENDS:${PN} += "\
17 python3-datetime \
18 python3-setuptools \
19 python3-logging \
20 python3-netclient \
21 python3-netserver \
22 python3-numbers \
23 python3-xmlrpc \
24"
25
26DISTUTILS_BUILD_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR} -I${STAGING_INCDIR}"
27DISTUTILS_INSTALL_ARGS += "build_ext --openssl=${STAGING_EXECPREFIXDIR}"
28
29SWIG_FEATURES ?= "-D__${HOST_ARCH}__ ${@['-D__ILP32__','-D__LP64__'][d.getVar('SITEINFO_BITS') != '32']} -DOPENSSL_NO_FILENAMES"
30
31SWIG_FEATURES:append:riscv64 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}"
32SWIG_FEATURES:append:riscv32 = " -D__SIZEOF_POINTER__=${SITEINFO_BITS}/8 -D__riscv_xlen=${SITEINFO_BITS}"
33SWIG_FEATURES:append:mipsarch = " -D_MIPS_SZPTR=${SITEINFO_BITS}"
34SWIG_FEATURES:append:powerpc64le = " -D__powerpc64__"
35SWIG_FEATURES:append:x86 = " -D__i386__"
36SWIG_FEATURES:append:x32 = " -D__ILP32__"
37
38export SWIG_FEATURES
39
40export STAGING_DIR
41
42do_configure:prepend() {
43 # workaround for https://github.com/swiftlang/swift/issues/69311
44 sed -i "/sys\/types.h/d" ${RECIPE_SYSROOT}${includedir}/openssl/e_os2.h
45}
46
47do_install:append() {
48 rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/SSL/__pycache__/*.cpython-*.pyc
49 rm -f ${D}${PYTHON_SITEPACKAGES_DIR}/M2Crypto/__pycache__/*.cpython-*.pyc
50}
51
52BBCLASSEXTEND = "native"