pkgsrc-WIP-changes archive

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

py-singer-target-csv: Import py-singer-target-csv-0.3.0 as wip/py-singer-target-csv



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Sun Mar 24 12:05:38 2024 +0100
Changeset:	1f2940214cfb327d9e2f9ce0fe0317292b067de1

Added Files:
	py-singer-target-csv/ALTERNATIVES
	py-singer-target-csv/DESCR
	py-singer-target-csv/Makefile
	py-singer-target-csv/PLIST
	py-singer-target-csv/distinfo
	py-singer-target-csv/patches/patch-setup.py
	py-singer-target-csv/patches/patch-target__csv.py

Log Message:
py-singer-target-csv: Import py-singer-target-csv-0.3.0 as wip/py-singer-target-csv

target-csv works together with any other Singer Tap to move data
from sources like Braintree, Freshdesk and Hubspot to CSV-for matted
files. It is commonly used for loading data into tools like Excel
or simply storing a backup of the source data set.

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

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

diffstat:
 py-singer-target-csv/ALTERNATIVES                 |  1 +
 py-singer-target-csv/DESCR                        |  4 ++++
 py-singer-target-csv/Makefile                     | 25 +++++++++++++++++++++++
 py-singer-target-csv/PLIST                        | 10 +++++++++
 py-singer-target-csv/distinfo                     |  7 +++++++
 py-singer-target-csv/patches/patch-setup.py       | 17 +++++++++++++++
 py-singer-target-csv/patches/patch-target__csv.py | 22 ++++++++++++++++++++
 7 files changed, 86 insertions(+)

diffs:
diff --git a/py-singer-target-csv/ALTERNATIVES b/py-singer-target-csv/ALTERNATIVES
new file mode 100644
index 0000000000..94e9b299a7
--- /dev/null
+++ b/py-singer-target-csv/ALTERNATIVES
@@ -0,0 +1 @@
+bin/singer-target-csv @PREFIX@/bin/singer-target-csv@PYVERSSUFFIX@
diff --git a/py-singer-target-csv/DESCR b/py-singer-target-csv/DESCR
new file mode 100644
index 0000000000..5dd3219374
--- /dev/null
+++ b/py-singer-target-csv/DESCR
@@ -0,0 +1,4 @@
+target-csv works together with any other Singer Tap to move data
+from sources like Braintree, Freshdesk and Hubspot to CSV-for matted
+files. It is commonly used for loading data into tools like Excel
+or simply storing a backup of the source data set.
diff --git a/py-singer-target-csv/Makefile b/py-singer-target-csv/Makefile
new file mode 100644
index 0000000000..c72a2c29e6
--- /dev/null
+++ b/py-singer-target-csv/Makefile
@@ -0,0 +1,25 @@
+# $NetBSD$
+
+DISTNAME=	target-csv-0.3.0
+PKGNAME=	${PYPKGPREFIX}-singer-${DISTNAME}
+CATEGORIES=	textproc python
+MASTER_SITES=	${MASTER_SITE_PYPI:=t/target-csv/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/singer-io/target-csv
+COMMENT=	Singer.io target for writing CSV files
+LICENSE=	gnu-agpl-v3
+
+DEPENDS+=	${PYPKGPREFIX}-jsonschema>=2.6.0:../../textproc/py-jsonschema
+DEPENDS+=	${PYPKGPREFIX}-singer-python>=2.1.4:../../wip/py-singer-python
+
+USE_LANGUAGES=	# none
+
+PYTHON_VERSIONS_INCOMPATIBLE=	27	# only for Python 3
+
+post-install:
+	cd ${DESTDIR}${PREFIX}/bin && \
+	${MV} target-csv singer-target-csv${PYVERSSUFFIX} || ${TRUE}
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-singer-target-csv/PLIST b/py-singer-target-csv/PLIST
new file mode 100644
index 0000000000..1ade8013a8
--- /dev/null
+++ b/py-singer-target-csv/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD$
+bin/singer-target-csv${PYVERSSUFFIX}
+${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}/target_csv.py
+${PYSITELIB}/target_csv.pyc
+${PYSITELIB}/target_csv.pyo
diff --git a/py-singer-target-csv/distinfo b/py-singer-target-csv/distinfo
new file mode 100644
index 0000000000..504bae4df6
--- /dev/null
+++ b/py-singer-target-csv/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (target-csv-0.3.0.tar.gz) = 9e0d646417b008f3eb06bd674159512d655294a45ad8faf557cc43ed0a4bf633
+SHA512 (target-csv-0.3.0.tar.gz) = 34cd395e74f17d02ff969abf05c02c9f4bdf5639f62b1f7126bc7cb8bb8b1e8742034feab2ee2103acd9f942c17bd727ce550016dd4f5832d23bfe5517418417
+Size (target-csv-0.3.0.tar.gz) = 3965 bytes
+SHA1 (patch-setup.py) = 72919d47e9a16119c4f2bfcab4526e0862bb5ae4
+SHA1 (patch-target__csv.py) = 35ca5614284e1934c047fa85f445a2a36b5957fd
diff --git a/py-singer-target-csv/patches/patch-setup.py b/py-singer-target-csv/patches/patch-setup.py
new file mode 100644
index 0000000000..83fe3792c1
--- /dev/null
+++ b/py-singer-target-csv/patches/patch-setup.py
@@ -0,0 +1,17 @@
+$NetBSD$
+
+Relax too strict version requirements.
+
+--- setup.py.orig	2019-04-15 16:10:06.000000000 +0000
++++ setup.py
+@@ -10,8 +10,8 @@ setup(name='target-csv',
+       classifiers=['Programming Language :: Python :: 3 :: Only'],
+       py_modules=['target_csv'],
+       install_requires=[
+-          'jsonschema==2.6.0',
+-          'singer-python==2.1.4',
++          'jsonschema>=2.6.0',
++          'singer-python>=2.1.4',
+       ],
+       entry_points='''
+           [console_scripts]
diff --git a/py-singer-target-csv/patches/patch-target__csv.py b/py-singer-target-csv/patches/patch-target__csv.py
new file mode 100644
index 0000000000..21c27af3b7
--- /dev/null
+++ b/py-singer-target-csv/patches/patch-target__csv.py
@@ -0,0 +1,22 @@
+$NetBSD$
+
+Add support for Python >= 3.4.
+
+--- target_csv.py.orig	2024-03-24 10:58:29.672667873 +0000
++++ target_csv.py
+@@ -10,9 +10,14 @@ import threading
+ import http.client
+ import urllib
+ from datetime import datetime
+-import collections
+ import pkg_resources
+ 
++try:
++   # Since Python 3.3 MutableMapping is part of collections.abc.
++   import collections.abc as collections
++except ModuleNotFoundError:
++   import collections
++
+ from jsonschema.validators import Draft4Validator
+ import singer
+ 


Home | Main Index | Thread Index | Old Index