pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-gcalcli: Import py-gcalcli-4.5.0 as wip/py-gcalcli



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Fri Oct 25 15:20:04 2024 +0200
Changeset:	6031602a599f7cc7e9d236df7aa80e1d9cf4f25f

Added Files:
	py-gcalcli/ALTERNATIVES
	py-gcalcli/DESCR
	py-gcalcli/Makefile
	py-gcalcli/PLIST
	py-gcalcli/TODO
	py-gcalcli/distinfo

Log Message:
py-gcalcli: Import py-gcalcli-4.5.0 as wip/py-gcalcli

gcalcli is a Python application that allows you to access your Google
Calendar(s) from a command line. It's easy to get your agenda, search
for events, add new events, delete events, edit events, see recently
updated events, and even import those annoying ICS/vCal invites from
Microsoft Exchange and/or other sources. Additionally, gcalcli can be
used as a reminder service and execute any application you want when an
event is coming up.

gcalcli uses the Google Calendar API version 3.

Not working yet, please see TODO.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6031602a599f7cc7e9d236df7aa80e1d9cf4f25f

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-gcalcli/ALTERNATIVES |  1 +
 py-gcalcli/DESCR        |  9 +++++++
 py-gcalcli/Makefile     | 46 ++++++++++++++++++++++++++++++++++++
 py-gcalcli/PLIST        | 63 +++++++++++++++++++++++++++++++++++++++++++++++++
 py-gcalcli/TODO         |  8 +++++++
 py-gcalcli/distinfo     |  5 ++++
 6 files changed, 132 insertions(+)

diffs:
diff --git a/py-gcalcli/ALTERNATIVES b/py-gcalcli/ALTERNATIVES
new file mode 100644
index 0000000000..fbbf479480
--- /dev/null
+++ b/py-gcalcli/ALTERNATIVES
@@ -0,0 +1 @@
+bin/gcalcli @PREFIX@/bin/gcalcli@PYVERSSUFFIX@
diff --git a/py-gcalcli/DESCR b/py-gcalcli/DESCR
new file mode 100644
index 0000000000..0ac6b744d6
--- /dev/null
+++ b/py-gcalcli/DESCR
@@ -0,0 +1,9 @@
+gcalcli is a Python application that allows you to access your Google
+Calendar(s) from a command line. It's easy to get your agenda, search
+for events, add new events, delete events, edit events, see recently
+updated events, and even import those annoying ICS/vCal invites from
+Microsoft Exchange and/or other sources. Additionally, gcalcli can be
+used as a reminder service and execute any application you want when an
+event is coming up.
+
+gcalcli uses the Google Calendar API version 3.
diff --git a/py-gcalcli/Makefile b/py-gcalcli/Makefile
new file mode 100644
index 0000000000..c4f81adb37
--- /dev/null
+++ b/py-gcalcli/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD$
+
+DISTNAME=	gcalcli-4.5.0
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	time
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/gcalcli/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/insanum/gcalcli
+COMMENT=	Google Calendar Command Line Interface
+LICENSE=	mit
+
+TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>=64:../../devel/py-setuptools
+TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools_scm>=8:../../devel/py-setuptools_scm
+TOOL_DEPENDS+=	${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
+DEPENDS+=	${PYPKGPREFIX}-argcomplete-[0-9]*:../../devel/py-argcomplete
+DEPENDS+=	${PYPKGPREFIX}-babel-[0-9]*:../../devel/py-babel
+DEPENDS+=	${PYPKGPREFIX}-dateutil-[0-9]*:../../time/py-dateutil
+DEPENDS+=	${PYPKGPREFIX}-google-api-python-client>=1.4:../../www/py-google-api-python-client
+DEPENDS+=	${PYPKGPREFIX}-google-auth-oauthlib-[0-9]*:../../security/py-google-auth-oauthlib
+DEPENDS+=	${PYPKGPREFIX}-httplib2-[0-9]*:../../www/py-httplib2
+DEPENDS+=	${PYPKGPREFIX}-parsedatetime-[0-9]*:../../time/py-parsedatetime
+DEPENDS+=	${PYPKGPREFIX}-platformdirs-[0-9]*:../../misc/py-platformdirs
+DEPENDS+=	${PYPKGPREFIX}-pydantic-[0-9]*:../../devel/py-pydantic
+DEPENDS+=	${PYPKGPREFIX}-truststore-[0-9]*:../../security/py-truststore
+
+# Only for Python >=3.10
+PYTHON_VERSIONS_INCOMPATIBLE=	39
+
+.include "../../lang/python/pyversion.mk"
+
+.if ${PYTHON_VERSION} < 311
+DEPENDS+=	${PYPKGPREFIX}-toml-[0-9]*:../../textproc/py-toml
+.endif
+
+SUBST_CLASSES+=		paths
+SUBST_STAGE.paths=	pre-configure
+SUBST_FILES.paths=	pyproject.toml
+SUBST_SED.paths=	-e "s,share/man/man1,${PKGMANDIR}/man1,"
+
+post-install:
+	${MV} ${DESTDIR}${PREFIX}/bin/gcalcli ${DESTDIR}${PREFIX}/bin/gcalcli${PYVERSSUFFIX}
+	${MV} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/gcalcli.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/gcalcli${PYVERSSUFFIX}.1
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-gcalcli/PLIST b/py-gcalcli/PLIST
new file mode 100644
index 0000000000..4071345e25
--- /dev/null
+++ b/py-gcalcli/PLIST
@@ -0,0 +1,63 @@
+@comment $NetBSD$
+bin/gcalcli${PYVERSSUFFIX}
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/gcalcli/__init__.py
+${PYSITELIB}/gcalcli/__init__.pyc
+${PYSITELIB}/gcalcli/__init__.pyo
+${PYSITELIB}/gcalcli/_types.py
+${PYSITELIB}/gcalcli/_types.pyc
+${PYSITELIB}/gcalcli/_types.pyo
+${PYSITELIB}/gcalcli/_version.py
+${PYSITELIB}/gcalcli/_version.pyc
+${PYSITELIB}/gcalcli/_version.pyo
+${PYSITELIB}/gcalcli/actions.py
+${PYSITELIB}/gcalcli/actions.pyc
+${PYSITELIB}/gcalcli/actions.pyo
+${PYSITELIB}/gcalcli/argparsers.py
+${PYSITELIB}/gcalcli/argparsers.pyc
+${PYSITELIB}/gcalcli/argparsers.pyo
+${PYSITELIB}/gcalcli/auth.py
+${PYSITELIB}/gcalcli/auth.pyc
+${PYSITELIB}/gcalcli/auth.pyo
+${PYSITELIB}/gcalcli/cli.py
+${PYSITELIB}/gcalcli/cli.pyc
+${PYSITELIB}/gcalcli/cli.pyo
+${PYSITELIB}/gcalcli/config.py
+${PYSITELIB}/gcalcli/config.pyc
+${PYSITELIB}/gcalcli/config.pyo
+${PYSITELIB}/gcalcli/conflicts.py
+${PYSITELIB}/gcalcli/conflicts.pyc
+${PYSITELIB}/gcalcli/conflicts.pyo
+${PYSITELIB}/gcalcli/deprecations.py
+${PYSITELIB}/gcalcli/deprecations.pyc
+${PYSITELIB}/gcalcli/deprecations.pyo
+${PYSITELIB}/gcalcli/details.py
+${PYSITELIB}/gcalcli/details.pyc
+${PYSITELIB}/gcalcli/details.pyo
+${PYSITELIB}/gcalcli/env.py
+${PYSITELIB}/gcalcli/env.pyc
+${PYSITELIB}/gcalcli/env.pyo
+${PYSITELIB}/gcalcli/exceptions.py
+${PYSITELIB}/gcalcli/exceptions.pyc
+${PYSITELIB}/gcalcli/exceptions.pyo
+${PYSITELIB}/gcalcli/gcal.py
+${PYSITELIB}/gcalcli/gcal.pyc
+${PYSITELIB}/gcalcli/gcal.pyo
+${PYSITELIB}/gcalcli/ics.py
+${PYSITELIB}/gcalcli/ics.pyc
+${PYSITELIB}/gcalcli/ics.pyo
+${PYSITELIB}/gcalcli/printer.py
+${PYSITELIB}/gcalcli/printer.pyc
+${PYSITELIB}/gcalcli/printer.pyo
+${PYSITELIB}/gcalcli/utils.py
+${PYSITELIB}/gcalcli/utils.pyc
+${PYSITELIB}/gcalcli/utils.pyo
+${PYSITELIB}/gcalcli/validators.py
+${PYSITELIB}/gcalcli/validators.pyc
+${PYSITELIB}/gcalcli/validators.pyo
+man/man1/gcalcli${PYVERSSUFFIX}.1
diff --git a/py-gcalcli/TODO b/py-gcalcli/TODO
new file mode 100644
index 0000000000..ea130724b8
--- /dev/null
+++ b/py-gcalcli/TODO
@@ -0,0 +1,8 @@
+gcalcli init seems to fails with:
+
+ RecursionError: maximum recursion depth exceeded while calling a Python object
+ [...]
+ OSError: Failed to fetch credentials. If this is a nonstandard gcalcli install, please try again with a system-installed gcalcli as a workaround.
+ Details: https://github.com/insanum/gcalcli/issues/735.
+
+No idea if this is an upstream issue or not.
diff --git a/py-gcalcli/distinfo b/py-gcalcli/distinfo
new file mode 100644
index 0000000000..e795285673
--- /dev/null
+++ b/py-gcalcli/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (gcalcli-4.5.0.tar.gz) = 6594d11b45234603fc1217795503542bbbe89cbeb1befbbad0411248b4b147ba
+SHA512 (gcalcli-4.5.0.tar.gz) = da69839b7f5ececf708f27d57cd5b37a148686151599125326c2af69bf7f2467c87af99866abd256f24bca126e39bfdca8cbc881db18d3e0967a59b010c042f9
+Size (gcalcli-4.5.0.tar.gz) = 1903651 bytes


Home | Main Index | Thread Index | Old Index