Signed-off-by: Artur Wiebe <[email protected]>
---
 rules/python3-pytz.in   | 13 +++++++++++
 rules/python3-pytz.make | 51 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)
 create mode 100644 rules/python3-pytz.in
 create mode 100644 rules/python3-pytz.make

diff --git a/rules/python3-pytz.in b/rules/python3-pytz.in
new file mode 100644
index 000000000..d2aff7acf
--- /dev/null
+++ b/rules/python3-pytz.in
@@ -0,0 +1,13 @@
+## SECTION=python3
+
+config PYTHON3_PYTZ
+       tristate
+       select PYTHON3
+       select HOST_PYTHON3_SETUPTOOLS
+       prompt "pytz"
+       help
+         pytz brings the Olson tz database into Python.
+         This library allows accurate and cross platform timezone calculations
+         using Python 2.4 or higher. It also solves the issue of ambiguous
+         times at the end of daylight saving time, which you can read
+         more about in the Python Library Reference (datetime.tzinfo).
diff --git a/rules/python3-pytz.make b/rules/python3-pytz.make
new file mode 100644
index 000000000..c054ab850
--- /dev/null
+++ b/rules/python3-pytz.make
@@ -0,0 +1,51 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Artur Wiebe <[email protected]>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_PYTHON3_PYTZ) += python3-pytz
+
+PYTHON3_PYTZ_VERSION   := 2018.5
+PYTHON3_PYTZ_MD5       := 45409cbfa3927bdd2f3ee914dd5b1060
+PYTHON3_PYTZ           := pytz-$(PYTHON3_PYTZ_VERSION)
+PYTHON3_PYTZ_SUFFIX    := tar.gz
+PYTHON3_PYTZ_URL       := 
https://pypi.python.org/packages/ca/a9/62f96decb1e309d6300ebe7eee9acfd7bccaeedd693794437005b9067b44/$(PYTHON3_PYTZ).$(PYTHON3_PYTZ_SUFFIX)\#md5=$(PYTHON3_PYTZ_MD5)
+PYTHON3_PYTZ_SOURCE    := $(SRCDIR)/$(PYTHON3_PYTZ).$(PYTHON3_PYTZ_SUFFIX)
+PYTHON3_PYTZ_DIR       := $(BUILDDIR)/$(PYTHON3_PYTZ)
+PYTHON3_PYTZ_LICENSE   := MIT
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+PYTHON3_PYTZ_CONF_TOOL    := python3
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/python3-pytz.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, python3-pytz)
+       @$(call install_fixup,python3-pytz,PRIORITY,optional)
+       @$(call install_fixup,python3-pytz,SECTION,base)
+       @$(call install_fixup,python3-pytz,AUTHOR,"Artur Wiebe 
<[email protected]>")
+       @$(call install_fixup,python3-pytz,DESCRIPTION,missing)
+
+       @$(call install_glob, python3-pytz, 0, 0, -, \
+               /usr/lib/python$(PYTHON3_MAJORMINOR)/site-packages/pytz,, *.py)
+
+       @$(call install_finish,python3-pytz)
+
+       @$(call touch)
+
+# vim: syntax=make
-- 
2.18.0


_______________________________________________
ptxdist mailing list
[email protected]

Reply via email to