* [Buildroot] [PATCH v4 1/2] python-cryptography: new package
@ 2016-02-08 9:04 yegorslists at googlemail.com
2016-02-08 9:04 ` [Buildroot] [PATCH v4 2/2] python-pyopenssl: " yegorslists at googlemail.com
2016-02-19 22:14 ` [Buildroot] [PATCH v4 1/2] python-cryptography: " Thomas Petazzoni
0 siblings, 2 replies; 4+ messages in thread
From: yegorslists at googlemail.com @ 2016-02-08 9:04 UTC (permalink / raw)
To: buildroot
From: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
Changes
v4: fix license info, fix runtime deps
v3: select PYTHON_SSL option
v2: add # runtime tags
package/Config.in | 1 +
package/python-cryptography/Config.in | 23 ++++++++++++++++++++++
.../python-cryptography/python-cryptography.hash | 3 +++
package/python-cryptography/python-cryptography.mk | 15 ++++++++++++++
4 files changed, 42 insertions(+)
create mode 100644 package/python-cryptography/Config.in
create mode 100644 package/python-cryptography/python-cryptography.hash
create mode 100644 package/python-cryptography/python-cryptography.mk
diff --git a/package/Config.in b/package/Config.in
index 529ad33..4eeaeb4 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -632,6 +632,7 @@ menu "External python modules"
source "package/python-configobj/Config.in"
source "package/python-configshell-fb/Config.in"
source "package/python-crc16/Config.in"
+ source "package/python-cryptography/Config.in"
source "package/python-cssselect/Config.in"
source "package/python-daemon/Config.in"
source "package/python-dialog/Config.in"
diff --git a/package/python-cryptography/Config.in b/package/python-cryptography/Config.in
new file mode 100644
index 0000000..9827cf8
--- /dev/null
+++ b/package/python-cryptography/Config.in
@@ -0,0 +1,23 @@
+config BR2_PACKAGE_PYTHON_CRYPTOGRAPHY
+ bool "python-cryptography"
+ depends on BR2_INSTALL_LIBSTDCPP # python-pyasn
+ select BR2_PACKAGE_OPENSSL
+ select BR2_PACKAGE_PYTHON_CFFI # runtime
+ select BR2_PACKAGE_PYTHON_IDNA # runtime
+ select BR2_PACKAGE_PYTHON_PYASN # runtime
+ select BR2_PACKAGE_PYTHON_SIX # runtime
+ select BR2_PACKAGE_PYTHON_ENUM34 if BR2_PACKAGE_PYTHON # runtime
+ select BR2_PACKAGE_PYTHON_SETUPTOOLS # runtime
+ select BR2_PACKAGE_PYTHON_PYEXPAT if BR2_PACKAGE_PYTHON # runtime
+ select BR2_PACKAGE_PYTHON3_PYEXPAT if BR2_PACKAGE_PYTHON3 # runtime
+ select BR2_PACKAGE_PYTHON_SSL if BR2_PACKAGE_PYTHON # runtime
+ select BR2_PACKAGE_PYTHON3_SSL if BR2_PACKAGE_PYTHON3 # runtime
+ select BR2_PACKAGE_PYTHON_IPADDRESS if BR2_PACKAGE_PYTHON # runtime
+ help
+ cryptography is a package designed to expose cryptographic
+ primitives and recipes to Python developers.
+
+ https://cryptography.io
+
+comment "python-cryptography needs a toolchain w/ C++"
+ depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/python-cryptography/python-cryptography.hash b/package/python-cryptography/python-cryptography.hash
new file mode 100644
index 0000000..b35f801
--- /dev/null
+++ b/package/python-cryptography/python-cryptography.hash
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi?:action=show_md5&digest=2b25eebd1d3c6bae52b46f0dcec74dfb, sha256 locally computed
+md5 2b25eebd1d3c6bae52b46f0dcec74dfb cryptography-1.2.2.tar.gz
+sha256 3f219cb9106d9b737ea9c332c4d15d70ac328f91b59fd9d79f78bdea8f826a67 cryptography-1.2.2.tar.gz
diff --git a/package/python-cryptography/python-cryptography.mk b/package/python-cryptography/python-cryptography.mk
new file mode 100644
index 0000000..57399b5
--- /dev/null
+++ b/package/python-cryptography/python-cryptography.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# python-cryptography
+#
+################################################################################
+
+PYTHON_CRYPTOGRAPHY_VERSION = 1.2.2
+PYTHON_CRYPTOGRAPHY_SOURCE = cryptography-$(PYTHON_CRYPTOGRAPHY_VERSION).tar.gz
+PYTHON_CRYPTOGRAPHY_SITE = https://pypi.python.org/packages/source/c/cryptography
+PYTHON_CRYPTOGRAPHY_SETUP_TYPE = setuptools
+PYTHON_CRYPTOGRAPHY_LICENSE = Apache-2.0, BSD-3c
+PYTHON_CRYPTOGRAPHY_LICENSE_FILES = LICENSE.APACHE LICENSE.BSD
+PYTHON_CRYPTOGRAPHY_DEPENDENCIES = host-python-cffi openssl
+
+$(eval $(python-package))
--
2.7.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v4 2/2] python-pyopenssl: new package
2016-02-08 9:04 [Buildroot] [PATCH v4 1/2] python-cryptography: new package yegorslists at googlemail.com
@ 2016-02-08 9:04 ` yegorslists at googlemail.com
2016-02-19 22:15 ` Thomas Petazzoni
2016-02-19 22:14 ` [Buildroot] [PATCH v4 1/2] python-cryptography: " Thomas Petazzoni
1 sibling, 1 reply; 4+ messages in thread
From: yegorslists at googlemail.com @ 2016-02-08 9:04 UTC (permalink / raw)
To: buildroot
From: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
Changes
v2: add # runtime tags
package/Config.in | 1 +
package/python-pyopenssl/Config.in | 12 ++++++++++++
package/python-pyopenssl/python-pyopenssl.hash | 3 +++
package/python-pyopenssl/python-pyopenssl.mk | 14 ++++++++++++++
4 files changed, 30 insertions(+)
create mode 100644 package/python-pyopenssl/Config.in
create mode 100644 package/python-pyopenssl/python-pyopenssl.hash
create mode 100644 package/python-pyopenssl/python-pyopenssl.mk
diff --git a/package/Config.in b/package/Config.in
index 4eeaeb4..3d1ae44 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -684,6 +684,7 @@ menu "External python modules"
source "package/python-pyftpdlib/Config.in"
source "package/python-pygame/Config.in"
source "package/python-pyinotify/Config.in"
+ source "package/python-pyopenssl/Config.in"
source "package/python-pyparsing/Config.in"
source "package/python-pyparted/Config.in"
source "package/python-pypcap/Config.in"
diff --git a/package/python-pyopenssl/Config.in b/package/python-pyopenssl/Config.in
new file mode 100644
index 0000000..c32e211
--- /dev/null
+++ b/package/python-pyopenssl/Config.in
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_PYTHON_PYOPENSSL
+ bool "python-pyopenssl"
+ depends on BR2_INSTALL_LIBSTDCPP # python-cryptography
+ select BR2_PACKAGE_PYTHON_CRYPTOGRAPHY # runtime
+ select BR2_PACKAGE_PYTHON_SIX # runtime
+ help
+ Python wrapper module around the OpenSSL library.
+
+ https://github.com/pyca/pyopenssl
+
+comment "python-pyopenssl needs a toolchain w/ C++"
+ depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/python-pyopenssl/python-pyopenssl.hash b/package/python-pyopenssl/python-pyopenssl.hash
new file mode 100644
index 0000000..0c6e25a
--- /dev/null
+++ b/package/python-pyopenssl/python-pyopenssl.hash
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi?:action=show_md5&digest=f447644afcbd5f0a1f47350fec63a4c6, sha256 locally computed
+md5 f447644afcbd5f0a1f47350fec63a4c6 pyOpenSSL-0.15.1.tar.gz
+sha256 f0a26070d6db0881de8bcc7846934b7c3c930d8f9c79d45883ee48984bc0d672 pyOpenSSL-0.15.1.tar.gz
diff --git a/package/python-pyopenssl/python-pyopenssl.mk b/package/python-pyopenssl/python-pyopenssl.mk
new file mode 100644
index 0000000..239fd98
--- /dev/null
+++ b/package/python-pyopenssl/python-pyopenssl.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-pyopenssl
+#
+################################################################################
+
+PYTHON_PYOPENSSL_VERSION = 0.15.1
+PYTHON_PYOPENSSL_SOURCE = pyOpenSSL-$(PYTHON_PYOPENSSL_VERSION).tar.gz
+PYTHON_PYOPENSSL_SITE = https://pypi.python.org/packages/source/p/pyOpenSSL
+PYTHON_PYOPENSSL_LICENSE = Apache-2.0
+PYTHON_PYOPENSSL_LICENSE_FILES = LICENSE
+PYTHON_PYOPENSSL_SETUP_TYPE = setuptools
+
+$(eval $(python-package))
--
2.7.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v4 1/2] python-cryptography: new package
2016-02-08 9:04 [Buildroot] [PATCH v4 1/2] python-cryptography: new package yegorslists at googlemail.com
2016-02-08 9:04 ` [Buildroot] [PATCH v4 2/2] python-pyopenssl: " yegorslists at googlemail.com
@ 2016-02-19 22:14 ` Thomas Petazzoni
1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2016-02-19 22:14 UTC (permalink / raw)
To: buildroot
Yegor,
On Mon, 8 Feb 2016 10:04:21 +0100, yegorslists at googlemail.com wrote:
> +PYTHON_CRYPTOGRAPHY_VERSION = 1.2.2
> +PYTHON_CRYPTOGRAPHY_SOURCE = cryptography-$(PYTHON_CRYPTOGRAPHY_VERSION).tar.gz
> +PYTHON_CRYPTOGRAPHY_SITE = https://pypi.python.org/packages/source/c/cryptography
> +PYTHON_CRYPTOGRAPHY_SETUP_TYPE = setuptools
> +PYTHON_CRYPTOGRAPHY_LICENSE = Apache-2.0, BSD-3c
As explained in the LICENSE file, the license is Apache-2.0 or BSD-3c,
not both.
> +PYTHON_CRYPTOGRAPHY_LICENSE_FILES = LICENSE.APACHE LICENSE.BSD
And therefore I added the LICENSE file here.
Applied to next with those two changes.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH v4 2/2] python-pyopenssl: new package
2016-02-08 9:04 ` [Buildroot] [PATCH v4 2/2] python-pyopenssl: " yegorslists at googlemail.com
@ 2016-02-19 22:15 ` Thomas Petazzoni
0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2016-02-19 22:15 UTC (permalink / raw)
To: buildroot
Yegor,
On Mon, 8 Feb 2016 10:04:22 +0100, yegorslists at googlemail.com wrote:
> From: Yegor Yefremov <yegorslists@googlemail.com>
>
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
> Changes
> v2: add # runtime tags
Applied to next, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-02-19 22:15 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-08 9:04 [Buildroot] [PATCH v4 1/2] python-cryptography: new package yegorslists at googlemail.com
2016-02-08 9:04 ` [Buildroot] [PATCH v4 2/2] python-pyopenssl: " yegorslists at googlemail.com
2016-02-19 22:15 ` Thomas Petazzoni
2016-02-19 22:14 ` [Buildroot] [PATCH v4 1/2] python-cryptography: " Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox