[1/1] package/python-crontab: new package
diff mbox series

Message ID 20191119165154.1576570-1-grzegorz@blach.pl
State Accepted
Headers show
Series
  • [1/1] package/python-crontab: new package
Related show

Commit Message

Grzegorz Blach Nov. 19, 2019, 4:51 p.m. UTC
Crontab module for reading and writing crontab files and accessing
the system cron automatically and simply using a direct API.

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
---
 DEVELOPERS                                 |  1 +
 package/Config.in                          |  1 +
 package/python-crontab/Config.in           |  8 ++++++++
 package/python-crontab/python-crontab.hash |  5 +++++
 package/python-crontab/python-crontab.mk   | 13 +++++++++++++
 5 files changed, 28 insertions(+)
 create mode 100644 package/python-crontab/Config.in
 create mode 100644 package/python-crontab/python-crontab.hash
 create mode 100644 package/python-crontab/python-crontab.mk

Comments

Peter Korsgaard Nov. 24, 2019, 10:06 p.m. UTC | #1
>>>>> "Grzegorz" == Grzegorz Blach <grzegorz@blach.pl> writes:

 > Crontab module for reading and writing crontab files and accessing
 > the system cron automatically and simply using a direct API.

 > Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>

 > +config BR2_PACKAGE_PYTHON_CRONTAB
 > +	bool "python-crontab"
 > +	select BR2_PACKAGE_PYTHON_DATEUTIL # runtime
 > +	help
 > +	  Crontab module for reading and writing crontab files and accessing
 > +	  the system cron automatically and simply using a direct API.
 > +
 > +	  https://gitlab.com/doctormo/python-crontab/

I see that there isn't a v2.4.0 tag in git. Can you contact upstream and
get them to push it?

Other than that, the patch looks good. Committed to next, thanks.

Patch
diff mbox series

diff --git a/DEVELOPERS b/DEVELOPERS
index 991be89849..a52b983bd7 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1003,6 +1003,7 @@  F:	package/f2fs-tools/
 F:	package/pigpio/
 F:	package/python-aioblescan/
 F:	package/python-bluezero/
+F:	package/python-crontab/
 F:	package/python-falcon/
 F:	package/python-ifaddr/
 F:	package/python-hiredis/
diff --git a/package/Config.in b/package/Config.in
index f72c77b416..61ecd755ab 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -875,6 +875,7 @@  menu "External python modules"
 	source "package/python-couchdb/Config.in"
 	source "package/python-crc16/Config.in"
 	source "package/python-crcmod/Config.in"
+	source "package/python-crontab/Config.in"
 	source "package/python-crossbar/Config.in"
 	source "package/python-cryptography/Config.in"
 	source "package/python-cssselect/Config.in"
diff --git a/package/python-crontab/Config.in b/package/python-crontab/Config.in
new file mode 100644
index 0000000000..f97e00af5e
--- /dev/null
+++ b/package/python-crontab/Config.in
@@ -0,0 +1,8 @@ 
+config BR2_PACKAGE_PYTHON_CRONTAB
+	bool "python-crontab"
+	select BR2_PACKAGE_PYTHON_DATEUTIL # runtime
+	help
+	  Crontab module for reading and writing crontab files and accessing
+	  the system cron automatically and simply using a direct API.
+
+	  https://gitlab.com/doctormo/python-crontab/
diff --git a/package/python-crontab/python-crontab.hash b/package/python-crontab/python-crontab.hash
new file mode 100644
index 0000000000..c4f3636f5c
--- /dev/null
+++ b/package/python-crontab/python-crontab.hash
@@ -0,0 +1,5 @@ 
+# md5, sha256 from https://pypi.org/pypi/python-crontab/json
+md5	e1f2ca65e0218a85c724e3d6058da2a3  python-crontab-2.4.0.tar.gz
+sha256	3ac1608ff76032e6fc6e16b5fbf83b51557e0e066bf78e9f88571571e7bd7ae6  python-crontab-2.4.0.tar.gz
+# Locally computed sha256 checksums
+sha256	da7eabb7bafdf7d3ae5e9f223aa5bdc1eece45ac569dc21b3b037520b4464768  COPYING
diff --git a/package/python-crontab/python-crontab.mk b/package/python-crontab/python-crontab.mk
new file mode 100644
index 0000000000..f6bf8d7072
--- /dev/null
+++ b/package/python-crontab/python-crontab.mk
@@ -0,0 +1,13 @@ 
+################################################################################
+#
+# python-crontab
+#
+################################################################################
+
+PYTHON_CRONTAB_VERSION = 2.4.0
+PYTHON_CRONTAB_SITE = https://files.pythonhosted.org/packages/bc/03/852f9c5f8da7f58abce06fe8ae769cbcf6502f1c60684b16bad72ffcced3
+PYTHON_CRONTAB_SETUP_TYPE = setuptools
+PYTHON_CRONTAB_LICENSE = LGPL-3.0+
+PYTHON_CRONTAB_LICENSE_FILES = COPYING
+
+$(eval $(python-package))