* [Buildroot] [PATCH] package: add python-ipaddr
@ 2014-12-02 12:56 Peter Korsgaard
2014-12-05 22:46 ` Thomas Petazzoni
2014-12-07 22:10 ` Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Peter Korsgaard @ 2014-12-02 12:56 UTC (permalink / raw)
To: buildroot
The functionality is included in python3 as the ipaddress module, so make it
python2 only.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
package/Config.in | 1 +
package/python-ipaddr/Config.in | 9 +++++++++
package/python-ipaddr/python-ipaddr.hash | 3 +++
package/python-ipaddr/python-ipaddr.mk | 14 ++++++++++++++
4 files changed, 27 insertions(+)
create mode 100644 package/python-ipaddr/Config.in
create mode 100644 package/python-ipaddr/python-ipaddr.hash
create mode 100644 package/python-ipaddr/python-ipaddr.mk
diff --git a/package/Config.in b/package/Config.in
index b8fc7d1..1826adf 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -496,6 +496,7 @@ menu "external python modules"
source "package/python-flup/Config.in"
source "package/python-httplib2/Config.in"
source "package/python-id3/Config.in"
+ source "package/python-ipaddr/Config.in"
source "package/python-ipy/Config.in"
source "package/python-ipython/Config.in"
source "package/python-itsdangerous/Config.in"
diff --git a/package/python-ipaddr/Config.in b/package/python-ipaddr/Config.in
new file mode 100644
index 0000000..cce67c1
--- /dev/null
+++ b/package/python-ipaddr/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PYTHON_IPADDR
+ depends on BR2_PACKAGE_PYTHON # included since python3.3
+ bool "python-ipaddr"
+ help
+ An IPv4/IPv6 manipulation library in Python. This library is
+ used to create/poke/manipulate IPv4 and IPv6 addresses and
+ prefixes.
+
+ https://code.google.com/p/ipaddr-py/
diff --git a/package/python-ipaddr/python-ipaddr.hash b/package/python-ipaddr/python-ipaddr.hash
new file mode 100644
index 0000000..99e1ca9
--- /dev/null
+++ b/package/python-ipaddr/python-ipaddr.hash
@@ -0,0 +1,3 @@
+# md5 from https://pypi.python.org/pypi?:action=show_md5&digest=f2c7852f95862715f92e7d089dc3f2cf, sha256 locally computed
+md5 f2c7852f95862715f92e7d089dc3f2cf ipaddr-2.1.11.tar.gz
+sha256 1b555b8a8800134fdafe32b7d0cb52f5bdbfdd093707c3dd484c5ea59f1d98b7 ipaddr-2.1.11.tar.gz
diff --git a/package/python-ipaddr/python-ipaddr.mk b/package/python-ipaddr/python-ipaddr.mk
new file mode 100644
index 0000000..8bfb543
--- /dev/null
+++ b/package/python-ipaddr/python-ipaddr.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-ipaddr
+#
+################################################################################
+
+PYTHON_IPADDR_VERSION = 2.1.11
+PYTHON_IPADDR_SOURCE = ipaddr-$(PYTHON_IPADDR_VERSION).tar.gz
+PYTHON_IPADDR_SITE = http://pypi.python.org/packages/source/i/ipaddr
+PYTHON_IPADDR_SETUP_TYPE = distutils
+PYTHON_IPADDR_LICENSE = Apache-2.0
+PYTHON_IPADDR_LICENSE_FILES = COPYING
+
+$(eval $(python-package))
--
2.1.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package: add python-ipaddr
2014-12-02 12:56 [Buildroot] [PATCH] package: add python-ipaddr Peter Korsgaard
@ 2014-12-05 22:46 ` Thomas Petazzoni
2014-12-07 22:10 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2014-12-05 22:46 UTC (permalink / raw)
To: buildroot
Dear Peter Korsgaard,
On Tue, 2 Dec 2014 13:56:25 +0100, Peter Korsgaard wrote:
> The functionality is included in python3 as the ipaddress module, so make it
> python2 only.
>
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
> ---
> package/Config.in | 1 +
> package/python-ipaddr/Config.in | 9 +++++++++
> package/python-ipaddr/python-ipaddr.hash | 3 +++
> package/python-ipaddr/python-ipaddr.mk | 14 ++++++++++++++
> 4 files changed, 27 insertions(+)
> create mode 100644 package/python-ipaddr/Config.in
> create mode 100644 package/python-ipaddr/python-ipaddr.hash
> create mode 100644 package/python-ipaddr/python-ipaddr.mk
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
(code reviewed, license checked, built and runtime tested on
ARM/uClibc)
Note however that the commit title for package additions should
normally be "<pkg>: new package", but it can be fixed while applying,
of course :-)
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] package: add python-ipaddr
2014-12-02 12:56 [Buildroot] [PATCH] package: add python-ipaddr Peter Korsgaard
2014-12-05 22:46 ` Thomas Petazzoni
@ 2014-12-07 22:10 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2014-12-07 22:10 UTC (permalink / raw)
To: buildroot
Dear Peter Korsgaard,
On Tue, 2 Dec 2014 13:56:25 +0100, Peter Korsgaard wrote:
> The functionality is included in python3 as the ipaddress module, so make it
> python2 only.
>
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Applied, after tweaking the commit title, thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-12-07 22:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-02 12:56 [Buildroot] [PATCH] package: add python-ipaddr Peter Korsgaard
2014-12-05 22:46 ` Thomas Petazzoni
2014-12-07 22:10 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox