Skip to contentSkip to conversation

python-pyxb: new package

PATCH New Yegor Yefremov 2 participants 3 messages Jan 20, 2015 – Jan 23, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-pyxb: new package

---
 package/Config.in                    |  1 +
 package/python-pyxb/Config.in        |  7 +++++++
 package/python-pyxb/python-pyxb.hash |  3 +++
 package/python-pyxb/python-pyxb.mk   | 13 +++++++++++++
 4 files changed, 24 insertions(+)
 create mode 100644 package/python-pyxb/Config.in
 create mode 100644 package/python-pyxb/python-pyxb.hash
 create mode 100644 package/python-pyxb/python-pyxb.mk
package/Config.in +1 -0
index 32d6755..5f6ebc2 100644
@@ -545,6 +545,7 @@ menu "external python modules"
 	source "package/python-pysnmp-apps/Config.in"
 	source "package/python-pysnmp-mibs/Config.in"
 	source "package/python-pyusb/Config.in"
+	source "package/python-pyxb/Config.in"
 	source "package/python-pyzmq/Config.in"
 	source "package/python-requests/Config.in"
 	source "package/python-rtslib-fb/Config.in"
package/python-pyxb/Config.in new file +7 -0
new file mode 100644
index 0000000..f122671
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_PYXB
+	bool "python-pyxb"
+	help
+	  PyXB is a pure Python package that generates Python code
+	  for classes that correspond to data structures defined by XMLSchema.
+
+	  http://pyxb.sourceforge.net/
package/python-pyxb/python-pyxb.hash new file +3 -0
new file mode 100644
index 0000000..6da3abc
@@ -0,0 +1,3 @@
+# Locally computed:
+sha256  14ced19ecce51e7cd26434446f9bd6b4e309e91806f1f6fc5e21f4ac736aa0de  python-pyxb-1.2.4.tar.gz
+
package/python-pyxb/python-pyxb.mk new file +13 -0
new file mode 100644
index 0000000..bd607b6
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-pyxb
+#
+################################################################################
+
+PYTHON_PYXB_VERSION = 1.2.4
+PYTHON_PYXB_SITE = $(call github,pabigot,pyxb,PyXB-$(PYTHON_PYXB_VERSION))
+PYTHON_PYXB_LICENSE = Apache License 2.0
+PYTHON_PYXB_LICENSE_FILES = LICENSE
+PYTHON_PYXB_SETUP_TYPE = distutils
+
+$(eval $(python-package))
Signature · 1 line
2.1.0
#1 lore raw

PATCH 1/1 python-pyxb: new package

Quoted 31 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yegor" == Yegor Yefremov <[email protected]> writes:

---
 package/Config.in                    |  1 +
 package/python-pyxb/Config.in        |  7 +++++++
 package/python-pyxb/python-pyxb.hash |  3 +++
 package/python-pyxb/python-pyxb.mk   | 13 +++++++++++++
 4 files changed, 24 insertions(+)
 create mode 100644 package/python-pyxb/Config.in
 create mode 100644 package/python-pyxb/python-pyxb.hash
 create mode 100644 package/python-pyxb/python-pyxb.mk
package/Config.in +1 -0
index 32d6755..5f6ebc2 100644
@@ -545,6 +545,7 @@ menu "external python modules"
 	source "package/python-pysnmp-apps/Config.in"
 	source "package/python-pysnmp-mibs/Config.in"
 	source "package/python-pyusb/Config.in"
+	source "package/python-pyxb/Config.in"
 	source "package/python-pyzmq/Config.in"
 	source "package/python-requests/Config.in"
 	source "package/python-rtslib-fb/Config.in"
package/python-pyxb/Config.in new file +0 -0
new file mode 100644
index 0000000..f122671

package/python-pyxb/Config.in line 7

Quoted 7 lines
package/python-pyxb/Config.in new file +7 -0
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_PYXB
+	bool "python-pyxb"
+	help
+	  PyXB is a pure Python package that generates Python code
+	  for classes that correspond to data structures defined by XMLSchema.
+
+	  http://pyxb.sourceforge.net/

So this is a code generator, right? Why do we need it for the target and not for the host then?

package/python-pyxb/python-pyxb.hash line 3

Quoted 9 lines
package/python-pyxb/python-pyxb.hash new file +3 -0
new file mode 100644
index 0000000..6da3abc
@@ -0,0 +1,3 @@
+# Locally computed:
+sha256  14ced19ecce51e7cd26434446f9bd6b4e309e91806f1f6fc5e21f4ac736aa0de  python-pyxb-1.2.4.tar.gz
+

Extra newline.

Quoted 6 lines
package/python-pyxb/python-pyxb.mk new file +0 -0
new file mode 100644
index 0000000..bd607b6

package/python-pyxb/python-pyxb.mk line 9

Quoted 9 lines
package/python-pyxb/python-pyxb.mk new file +9 -0
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-pyxb
+#
+################################################################################
+
+PYTHON_PYXB_VERSION = 1.2.4
+PYTHON_PYXB_SITE = $(call github,pabigot,pyxb,PyXB-$(PYTHON_PYXB_VERSION))
+PYTHON_PYXB_LICENSE = Apache License 2.0

The Buildroot name for this is Apache-2.0.

Committed with these fixes, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH 1/1 python-pyxb: new package

Quoted 33 lines · Peter Korsgaard
Quoted 33 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yegor" == Yegor Yefremov <[email protected]> writes:

---
 package/Config.in                    |  1 +
 package/python-pyxb/Config.in        |  7 +++++++
 package/python-pyxb/python-pyxb.hash |  3 +++
 package/python-pyxb/python-pyxb.mk   | 13 +++++++++++++
 4 files changed, 24 insertions(+)
 create mode 100644 package/python-pyxb/Config.in
 create mode 100644 package/python-pyxb/python-pyxb.hash
 create mode 100644 package/python-pyxb/python-pyxb.mk
package/Config.in +1 -0
index 32d6755..5f6ebc2 100644
@@ -545,6 +545,7 @@ menu "external python modules"
     source "package/python-pysnmp-apps/Config.in"
     source "package/python-pysnmp-mibs/Config.in"
     source "package/python-pyusb/Config.in"
+    source "package/python-pyxb/Config.in"
     source "package/python-pyzmq/Config.in"
     source "package/python-requests/Config.in"
     source "package/python-rtslib-fb/Config.in"
package/python-pyxb/Config.in new file +2 -0
new file mode 100644
index 0000000..f122671
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_PYXB
+    bool "python-pyxb"
Quoted 8 lines

package/python-pyxb/Config.in line 7

Quoted 5 lines
package/python-pyxb/Config.in new file +5 -0
+    help
+      PyXB is a pure Python package that generates Python code
+      for classes that correspond to data structures defined by XMLSchema.
+
+      http://pyxb.sourceforge.net/

So this is a code generator, right? Why do we need it for the target and not for the host then?

I'd say, it is more object, then code generator. You get some data as XML file, then you use pyxb and XML Schema file to generate object from this XML class to easily access it's members. See this example:
http://pyxb.sourceforge.net/index.html#thirty-second-example

So I don't know, if it makes any sense to make a host package of it.

Quoted 34 lines

package/python-pyxb/python-pyxb.hash line 3

Quoted 9 lines
package/python-pyxb/python-pyxb.hash new file +3 -0
new file mode 100644
index 0000000..6da3abc
@@ -0,0 +1,3 @@
+# Locally computed:
+sha256  14ced19ecce51e7cd26434446f9bd6b4e309e91806f1f6fc5e21f4ac736aa0de  python-pyxb-1.2.4.tar.gz
+

Extra newline.

Quoted 6 lines
package/python-pyxb/python-pyxb.mk new file +0 -0
new file mode 100644
index 0000000..bd607b6

package/python-pyxb/python-pyxb.mk line 9

Quoted 9 lines
package/python-pyxb/python-pyxb.mk new file +9 -0
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-pyxb
+#
+################################################################################
+
+PYTHON_PYXB_VERSION = 1.2.4
+PYTHON_PYXB_SITE = $(call github,pabigot,pyxb,PyXB-$(PYTHON_PYXB_VERSION))
+PYTHON_PYXB_LICENSE = Apache License 2.0

The Buildroot name for this is Apache-2.0.

Committed with these fixes, thanks.

--
Bye, Peter Korsgaard