Signed-off-by: Lars Pedersen <[email protected]> --- rules/python3-pycryptodomex.in | 9 ++++++ rules/python3-pycryptodomex.make | 54 ++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 rules/python3-pycryptodomex.in create mode 100644 rules/python3-pycryptodomex.make
diff --git a/rules/python3-pycryptodomex.in b/rules/python3-pycryptodomex.in new file mode 100644 index 000000000..045c9f44e --- /dev/null +++ b/rules/python3-pycryptodomex.in @@ -0,0 +1,9 @@ +## SECTION=python3 + +config PYTHON3_PYCRYPTODOMEX + tristate + select PYTHON3 + select HOST_PYTHON3_SETUPTOOLS + prompt "pycryptodomex" + help + PyCryptodome is a self-contained Python package of low-level cryptographic primitives diff --git a/rules/python3-pycryptodomex.make b/rules/python3-pycryptodomex.make new file mode 100644 index 000000000..59dadfbd0 --- /dev/null +++ b/rules/python3-pycryptodomex.make @@ -0,0 +1,54 @@ +# -*-makefile-*- +# +# Copyright (C) 2021 by Lars Pedersen <[email protected]> +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_PYTHON3_PYCRYPTODOMEX) += python3-pycryptodomex + +# +# Paths and names +# +PYTHON3_PYCRYPTODOMEX_VERSION := 3.10.1 +PYTHON3_PYCRYPTODOMEX_MD5 := 91b86ca7fa80d41179d7735067c7347a +PYTHON3_PYCRYPTODOMEX := pycryptodomex-$(PYTHON3_PYCRYPTODOMEX_VERSION) +PYTHON3_PYCRYPTODOMEX_SUFFIX := tar.gz +PYTHON3_PYCRYPTODOMEX_URL := $(call ptx/mirror-pypi, pycryptodomex, $(PYTHON3_PYCRYPTODOMEX).$(PYTHON3_PYCRYPTODOMEX_SUFFIX)) +PYTHON3_PYCRYPTODOMEX_SOURCE := $(SRCDIR)/$(PYTHON3_PYCRYPTODOMEX).$(PYTHON3_PYCRYPTODOMEX_SUFFIX) +PYTHON3_PYCRYPTODOMEX_DIR := $(BUILDDIR)/$(PYTHON3_PYCRYPTODOMEX) +PYTHON3_PYCRYPTODOMEX_LICENSE := BSD-2 +PYTHON3_PYCRYPTODOMEX_LICENSE_FILES := \ + file://LICENSE.rst;md5=accfa6aeaceb3ba96676edf18e78302c + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +PYTHON3_PYCRYPTODOMEX_CONF_TOOL := python3 + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/python3-pycryptodomex.targetinstall: + @$(call targetinfo) + + @$(call install_init, python3-pycryptodomex) + @$(call install_fixup, python3-pycryptodomex,PRIORITY,optional) + @$(call install_fixup, python3-pycryptodomex,SECTION,base) + @$(call install_fixup, python3-pycryptodomex,AUTHOR,"Lars Pedersen <[email protected]>") + @$(call install_fixup, python3-pycryptodomex,DESCRIPTION,missing) + + @$(call install_glob, python3-pycryptodomex, 0, 0, -, \ + $(PYTHON3_SITEPACKAGES),, *.py *SelfTest*) + + @$(call install_finish, python3-pycryptodomex) + + @$(call touch) + +# vim: syntax=make -- 2.31.1 _______________________________________________ ptxdist mailing list [email protected] To unsubscribe, send a mail with subject "unsubscribe" to [email protected]
