From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 06 Apr 2023 22:09:58 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pkVvh-00CNIM-35 for lore@lore.pengutronix.de; Thu, 06 Apr 2023 22:09:57 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1pkVvg-0007Gw-2s; Thu, 06 Apr 2023 22:09:56 +0200 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pkVv6-0007GP-6Z; Thu, 06 Apr 2023 22:09:20 +0200 Received: from rhi by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1pkVv5-0008E5-Vq; Thu, 06 Apr 2023 22:09:19 +0200 Date: Thu, 6 Apr 2023 22:09:19 +0200 From: Roland Hieber To: Artur Wiebe Message-ID: <20230406200919.xpf5mdg7ujg3yxk7@pengutronix.de> References: <20230327140915.3253285-1-artur@4wiebe.de> <20230327140915.3253285-3-artur@4wiebe.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230327140915.3253285-3-artur@4wiebe.de> User-Agent: NeoMutt/20180716 Subject: Re: [ptxdist] [PATCH 3/3] python3-cryptography: Python package that wants to compile with rust and cargo... X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false On Mon, Mar 27, 2023 at 04:09:15PM +0200, Artur Wiebe wrote: > --- > rules/python3-cryptography.in | 10 ++++++ > rules/python3-cryptography.make | 56 +++++++++++++++++++++++++++++++++ > 2 files changed, 66 insertions(+) > create mode 100644 rules/python3-cryptography.in > create mode 100644 rules/python3-cryptography.make > > diff --git a/rules/python3-cryptography.in b/rules/python3-cryptography.in > new file mode 100644 > index 000000000..97187de02 > --- /dev/null > +++ b/rules/python3-cryptography.in > @@ -0,0 +1,10 @@ > +## SECTION=python3 > + > +config PYTHON3_CRYPTOGRAPHY > + tristate > + select PYTHON3 > + select HOST_PYTHON3_SETUPTOOLS_RUST > + prompt "cryptography" > + help > + Cryptography is a package which provides cryptographic recipes and primitives to Python developers. > + Our goal is for it to be your “cryptographic standard library” > diff --git a/rules/python3-cryptography.make b/rules/python3-cryptography.make > new file mode 100644 > index 000000000..7c5ac9885 > --- /dev/null > +++ b/rules/python3-cryptography.make > @@ -0,0 +1,56 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2023 by Artur Wiebe > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_PYTHON3_CRYPTOGRAPHY) += python3-cryptography > + > +# > +# Paths and names > +# > +PYTHON3_CRYPTOGRAPHY_VERSION := 40.0.1 > +PYTHON3_CRYPTOGRAPHY_MD5 := 24dec990fce1d4a614ad86076c8e347f > +PYTHON3_CRYPTOGRAPHY := cryptography-$(PYTHON3_CRYPTOGRAPHY_VERSION) > +PYTHON3_CRYPTOGRAPHY_SUFFIX := tar.gz > +PYTHON3_CRYPTOGRAPHY_URL := $(call ptx/mirror-pypi, cryptography, $(PYTHON3_CRYPTOGRAPHY).$(PYTHON3_CRYPTOGRAPHY_SUFFIX)) > +PYTHON3_CRYPTOGRAPHY_SOURCE := $(SRCDIR)/$(PYTHON3_CRYPTOGRAPHY).$(PYTHON3_CRYPTOGRAPHY_SUFFIX) > +PYTHON3_CRYPTOGRAPHY_DIR := $(BUILDDIR)/$(PYTHON3_CRYPTOGRAPHY) > +PYTHON3_CRYPTOGRAPHY_LICENSE := Apache-2.0 OR BSD-3-Clause > +PYTHON3_CRYPTOGRAPHY_LICENSE_FILES := Same here. - Roland > + > +PYTHON3_CRYPTOGRAPHY_CARGO_LOCK := $(PYTHON3_CRYPTOGRAPHY_DIR)/src/rust/Cargo.lock > + > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +PYTHON3_CRYPTOGRAPHY_CONF_TOOL := python3 > + > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/python3-cryptography.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, python3-cryptography) > + @$(call install_fixup, python3-cryptography,PRIORITY,optional) > + @$(call install_fixup, python3-cryptography,SECTION,base) > + @$(call install_fixup, python3-cryptography,AUTHOR,"Artur Wiebe ") > + @$(call install_fixup, python3-cryptography,DESCRIPTION,missing) > + > + @$(call install_glob, python3-cryptography, 0, 0, -, \ > + $(PYTHON3_SITEPACKAGES),, *.py) > + > + @$(call install_finish, python3-cryptography) > + > + @$(call touch) > + > +# vim: syntax=make > -- > 2.39.2 > > > -- Roland Hieber, Pengutronix e.K. | r.hieber@pengutronix.de | Steuerwalder Str. 21 | https://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |