[v3] python-pymodbus: new package

Message ID 1521033470-3351-1-git-send-email-hyfinglists@googlemail.com
State Accepted
Headers show
Series
  • [v3] python-pymodbus: new package
Related show

Commit Message

Falco Hyfing March 14, 2018, 1:17 p.m.
From: Falco Hyfing <hyfinglists@gmail.com>

Signed-off-by: Falco Hyfing <hyfinglists@gmail.com>
---
 Changes v3:
   - fixed whitespaces
   - taged pyhton-six dependency as runtime

 DEVELOPERS                                   |  3 +++
 package/Config.in                            |  1 +
 package/python-pymodbus/Config.in            |  5 +++++
 package/python-pymodbus/python-pymodbus.hash |  3 +++
 package/python-pymodbus/python-pymodbus.mk   | 13 +++++++++++++
 5 files changed, 25 insertions(+)
 create mode 100644 package/python-pymodbus/Config.in
 create mode 100644 package/python-pymodbus/python-pymodbus.hash
 create mode 100644 package/python-pymodbus/python-pymodbus.mk

Comments

Yegor Yefremov March 14, 2018, 1:23 p.m. | #1
On Wed, Mar 14, 2018 at 2:17 PM,  <hyfinglists@gmail.com> wrote:
> From: Falco Hyfing <hyfinglists@gmail.com>
>
> Signed-off-by: Falco Hyfing <hyfinglists@gmail.com>

Reviewed-by: Yegor Yefremov <yegorslists@googlemail.com>

> ---
>  Changes v3:
>    - fixed whitespaces
>    - taged pyhton-six dependency as runtime
>
>  DEVELOPERS                                   |  3 +++
>  package/Config.in                            |  1 +
>  package/python-pymodbus/Config.in            |  5 +++++
>  package/python-pymodbus/python-pymodbus.hash |  3 +++
>  package/python-pymodbus/python-pymodbus.mk   | 13 +++++++++++++
>  5 files changed, 25 insertions(+)
>  create mode 100644 package/python-pymodbus/Config.in
>  create mode 100644 package/python-pymodbus/python-pymodbus.hash
>  create mode 100644 package/python-pymodbus/python-pymodbus.mk
>
> diff --git a/DEVELOPERS b/DEVELOPERS
> index 3df820e..48d3426 100644
> --- a/DEVELOPERS
> +++ b/DEVELOPERS
> @@ -663,6 +663,9 @@ F:  package/safeclib/
>  F:     package/tinycbor/
>  F:     package/tinydtls/
>
> +N:     Falco Hyfing <hyfinglists@gmail.com>
> +F:     package/python-pymodbus/
> +
>  N:     Floris Bos <bos@je-eigen-domein.nl>
>  F:     package/ipmitool/
>  F:     package/odhcploc/
> diff --git a/package/Config.in b/package/Config.in
> index 449ffcc..a6efa1e 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -872,6 +872,7 @@ menu "External python modules"
>         source "package/python-pyinotify/Config.in"
>         source "package/python-pylibftdi/Config.in"
>         source "package/python-pylru/Config.in"
> +       source "package/python-pymodbus/Config.in"
>         source "package/python-pymysql/Config.in"
>         source "package/python-pynacl/Config.in"
>         source "package/python-pyopenssl/Config.in"
> diff --git a/package/python-pymodbus/Config.in b/package/python-pymodbus/Config.in
> new file mode 100644
> index 0000000..6501809
> --- /dev/null
> +++ b/package/python-pymodbus/Config.in
> @@ -0,0 +1,5 @@
> +config BR2_PACKAGE_PYTHON_PYMODBUS
> +       bool "python-pymodbus"
> +       select BR2_PACKAGE_PYTHON_SIX # runtime
> +       help
> +         Pymodbus is a full Modbus protocol implementation.
> diff --git a/package/python-pymodbus/python-pymodbus.hash b/package/python-pymodbus/python-pymodbus.hash
> new file mode 100644
> index 0000000..c930795
> --- /dev/null
> +++ b/package/python-pymodbus/python-pymodbus.hash
> @@ -0,0 +1,3 @@
> +# sha256 locally computed
> +sha256  e33bd0dfbd2cbd4dbc686ca87f809aebb7d72e940eb5846d5d38bb0f3371b26a  python-pymodbus-v1.4.0.tar.gz
> +sha256  796a47993313691ea404d8af7e4c0f9daf1d2760e3900938985b59c9008eee2f  doc/LICENSE
> diff --git a/package/python-pymodbus/python-pymodbus.mk b/package/python-pymodbus/python-pymodbus.mk
> new file mode 100644
> index 0000000..40470fe
> --- /dev/null
> +++ b/package/python-pymodbus/python-pymodbus.mk
> @@ -0,0 +1,13 @@
> +################################################################################
> +#
> +# python-pymodbus
> +#
> +################################################################################
> +
> +PYTHON_PYMODBUS_VERSION = v1.4.0
> +PYTHON_PYMODBUS_SITE = $(call github,riptideio,pymodbus,$(PYTHON_PYMODBUS_VERSION))
> +PYTHON_PYMODBUS_SETUP_TYPE = setuptools
> +PYTHON_PYMODBUS_LICENSE = BSD-3-Clause
> +PYTHON_PYMODBUS_LICENSE_FILES = doc/LICENSE
> +
> +$(eval $(python-package))
> --
> 2.1.4
>
> _______________________________________________
> buildroot mailing list
> buildroot@busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
Thomas Petazzoni March 25, 2018, 9:40 p.m. | #2
Hello,

Thanks for your contribution!

On Wed, 14 Mar 2018 14:17:50 +0100, hyfinglists@gmail.com wrote:
> diff --git a/package/python-pymodbus/Config.in b/package/python-pymodbus/Config.in
> new file mode 100644
> index 0000000..6501809
> --- /dev/null
> +++ b/package/python-pymodbus/Config.in
> @@ -0,0 +1,5 @@
> +config BR2_PACKAGE_PYTHON_PYMODBUS
> +	bool "python-pymodbus"
> +	select BR2_PACKAGE_PYTHON_SIX # runtime
> +	help
> +	  Pymodbus is a full Modbus protocol implementation.

I've added an URL to the upstream web site here, and applied your patch
to master. Thanks!

Thomas

Patch

diff --git a/DEVELOPERS b/DEVELOPERS
index 3df820e..48d3426 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -663,6 +663,9 @@  F:	package/safeclib/
 F:	package/tinycbor/
 F:	package/tinydtls/
 
+N:	Falco Hyfing <hyfinglists@gmail.com>
+F:	package/python-pymodbus/
+
 N:	Floris Bos <bos@je-eigen-domein.nl>
 F:	package/ipmitool/
 F:	package/odhcploc/
diff --git a/package/Config.in b/package/Config.in
index 449ffcc..a6efa1e 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -872,6 +872,7 @@  menu "External python modules"
 	source "package/python-pyinotify/Config.in"
 	source "package/python-pylibftdi/Config.in"
 	source "package/python-pylru/Config.in"
+	source "package/python-pymodbus/Config.in"
 	source "package/python-pymysql/Config.in"
 	source "package/python-pynacl/Config.in"
 	source "package/python-pyopenssl/Config.in"
diff --git a/package/python-pymodbus/Config.in b/package/python-pymodbus/Config.in
new file mode 100644
index 0000000..6501809
--- /dev/null
+++ b/package/python-pymodbus/Config.in
@@ -0,0 +1,5 @@ 
+config BR2_PACKAGE_PYTHON_PYMODBUS
+	bool "python-pymodbus"
+	select BR2_PACKAGE_PYTHON_SIX # runtime
+	help
+	  Pymodbus is a full Modbus protocol implementation.
diff --git a/package/python-pymodbus/python-pymodbus.hash b/package/python-pymodbus/python-pymodbus.hash
new file mode 100644
index 0000000..c930795
--- /dev/null
+++ b/package/python-pymodbus/python-pymodbus.hash
@@ -0,0 +1,3 @@ 
+# sha256 locally computed
+sha256  e33bd0dfbd2cbd4dbc686ca87f809aebb7d72e940eb5846d5d38bb0f3371b26a  python-pymodbus-v1.4.0.tar.gz
+sha256  796a47993313691ea404d8af7e4c0f9daf1d2760e3900938985b59c9008eee2f  doc/LICENSE
diff --git a/package/python-pymodbus/python-pymodbus.mk b/package/python-pymodbus/python-pymodbus.mk
new file mode 100644
index 0000000..40470fe
--- /dev/null
+++ b/package/python-pymodbus/python-pymodbus.mk
@@ -0,0 +1,13 @@ 
+################################################################################
+#
+# python-pymodbus
+#
+################################################################################
+
+PYTHON_PYMODBUS_VERSION = v1.4.0
+PYTHON_PYMODBUS_SITE = $(call github,riptideio,pymodbus,$(PYTHON_PYMODBUS_VERSION))
+PYTHON_PYMODBUS_SETUP_TYPE = setuptools
+PYTHON_PYMODBUS_LICENSE = BSD-3-Clause
+PYTHON_PYMODBUS_LICENSE_FILES = doc/LICENSE
+
+$(eval $(python-package))