pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Add py-awscrt version 0.27.6
Module Name: pkgsrc-wip
Committed By: Maya Rashish <maya%NetBSD.org@localhost>
Pushed By: coypu
Date: Sat Sep 6 21:22:35 2025 +0000
Changeset: 927cab4f83fe23cb2f61cc086a9f106d3721f461
Added Files:
py-awscrt/DESCR
py-awscrt/Makefile
py-awscrt/PLIST
py-awscrt/distinfo
py-awscrt/patches/patch-crt_aws-c-common_source_posix_thread.c
py-awscrt/patches/patch-crt_aws-c-io_source_posix_host__resolver.c
Log Message:
Add py-awscrt version 0.27.6
This package provides Python 3 bindings for the AWS Common Runtime.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=927cab4f83fe23cb2f61cc086a9f106d3721f461
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-awscrt/DESCR | 1 +
py-awscrt/Makefile | 28 ++++++++++
py-awscrt/PLIST | 59 ++++++++++++++++++++++
py-awscrt/distinfo | 7 +++
.../patch-crt_aws-c-common_source_posix_thread.c | 15 ++++++
...atch-crt_aws-c-io_source_posix_host__resolver.c | 15 ++++++
6 files changed, 125 insertions(+)
diffs:
diff --git a/py-awscrt/DESCR b/py-awscrt/DESCR
new file mode 100644
index 0000000000..1182e707fd
--- /dev/null
+++ b/py-awscrt/DESCR
@@ -0,0 +1 @@
+This package provides Python 3 bindings for the AWS Common Runtime.
diff --git a/py-awscrt/Makefile b/py-awscrt/Makefile
new file mode 100644
index 0000000000..199bc226ed
--- /dev/null
+++ b/py-awscrt/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.74 2025/04/15 08:00:41 adam Exp $
+
+DISTNAME= awscrt-0.27.6
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= net python
+MASTER_SITES= ${MASTER_SITE_PYPI:=a/awscrt/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://pypi.org/project/awscrt/
+COMMENT= Python 3 bindings for the AWS Common Runtime.
+LICENSE= apache-2.0
+
+#TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
+#DEPENDS+= ${PYPKGPREFIX}-botocore>=1.37.34:../../net/py-botocore
+#DEPENDS+= ${PYPKGPREFIX}-colorama>=0.3.2:../../comms/py-colorama
+#DEPENDS+= ${PYPKGPREFIX}-docutils>=0.10:../../textproc/py-docutils
+#DEPENDS+= ${PYPKGPREFIX}-rsa>=3.1.2:../../security/py-rsa
+#DEPENDS+= ${PYPKGPREFIX}-s3transfer>=0.11.0:../../net/py-s3transfer
+#DEPENDS+= ${PYPKGPREFIX}-yaml>=3.10:../../textproc/py-yaml
+
+USE_LANGUAGES= c c++
+
+PYTHON_SELF_CONFLICT= yes
+
+CFLAGS.NetBSD+= -D_NETBSD_SOURCE
+
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-awscrt/PLIST b/py-awscrt/PLIST
new file mode 100644
index 0000000000..8954797164
--- /dev/null
+++ b/py-awscrt/PLIST
@@ -0,0 +1,59 @@
+@comment $NetBSD$
+${PYSITELIB}/_awscrt.abi3.so
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/NOTICE
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/awscrt/__init__.py
+${PYSITELIB}/awscrt/__init__.pyc
+${PYSITELIB}/awscrt/__init__.pyo
+${PYSITELIB}/awscrt/_test.py
+${PYSITELIB}/awscrt/_test.pyc
+${PYSITELIB}/awscrt/_test.pyo
+${PYSITELIB}/awscrt/auth.py
+${PYSITELIB}/awscrt/auth.pyc
+${PYSITELIB}/awscrt/auth.pyo
+${PYSITELIB}/awscrt/cbor.py
+${PYSITELIB}/awscrt/cbor.pyc
+${PYSITELIB}/awscrt/cbor.pyo
+${PYSITELIB}/awscrt/checksums.py
+${PYSITELIB}/awscrt/checksums.pyc
+${PYSITELIB}/awscrt/checksums.pyo
+${PYSITELIB}/awscrt/common.py
+${PYSITELIB}/awscrt/common.pyc
+${PYSITELIB}/awscrt/common.pyo
+${PYSITELIB}/awscrt/crypto.py
+${PYSITELIB}/awscrt/crypto.pyc
+${PYSITELIB}/awscrt/crypto.pyo
+${PYSITELIB}/awscrt/eventstream/__init__.py
+${PYSITELIB}/awscrt/eventstream/__init__.pyc
+${PYSITELIB}/awscrt/eventstream/__init__.pyo
+${PYSITELIB}/awscrt/eventstream/rpc.py
+${PYSITELIB}/awscrt/eventstream/rpc.pyc
+${PYSITELIB}/awscrt/eventstream/rpc.pyo
+${PYSITELIB}/awscrt/exceptions.py
+${PYSITELIB}/awscrt/exceptions.pyc
+${PYSITELIB}/awscrt/exceptions.pyo
+${PYSITELIB}/awscrt/http.py
+${PYSITELIB}/awscrt/http.pyc
+${PYSITELIB}/awscrt/http.pyo
+${PYSITELIB}/awscrt/io.py
+${PYSITELIB}/awscrt/io.pyc
+${PYSITELIB}/awscrt/io.pyo
+${PYSITELIB}/awscrt/mqtt.py
+${PYSITELIB}/awscrt/mqtt.pyc
+${PYSITELIB}/awscrt/mqtt.pyo
+${PYSITELIB}/awscrt/mqtt5.py
+${PYSITELIB}/awscrt/mqtt5.pyc
+${PYSITELIB}/awscrt/mqtt5.pyo
+${PYSITELIB}/awscrt/mqtt_request_response.py
+${PYSITELIB}/awscrt/mqtt_request_response.pyc
+${PYSITELIB}/awscrt/mqtt_request_response.pyo
+${PYSITELIB}/awscrt/s3.py
+${PYSITELIB}/awscrt/s3.pyc
+${PYSITELIB}/awscrt/s3.pyo
+${PYSITELIB}/awscrt/websocket.py
+${PYSITELIB}/awscrt/websocket.pyc
+${PYSITELIB}/awscrt/websocket.pyo
diff --git a/py-awscrt/distinfo b/py-awscrt/distinfo
new file mode 100644
index 0000000000..e6fb13fba4
--- /dev/null
+++ b/py-awscrt/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.70 2025/04/15 08:00:41 adam Exp $
+
+BLAKE2s (awscrt-0.27.6.tar.gz) = 068dae231d4a2cd222b3c85e8c2f8b325d57fc26dab99912300719e31af78a66
+SHA512 (awscrt-0.27.6.tar.gz) = 0df60174211cee539821f908c5eb63f24e26cf1eff6b1df87abb815659bc2af4569fd2e5af3de0fb4ee1d8041206d3124ee1fefda11957c54458fc215131071f
+Size (awscrt-0.27.6.tar.gz) = 37677550 bytes
+SHA1 (patch-crt_aws-c-common_source_posix_thread.c) = 1fcfd2085e63992c9d1c57475f6005b8fdfde5ed
+SHA1 (patch-crt_aws-c-io_source_posix_host__resolver.c) = 4b5b8a30ba2a984673112eb190dc03a73514d230
diff --git a/py-awscrt/patches/patch-crt_aws-c-common_source_posix_thread.c b/py-awscrt/patches/patch-crt_aws-c-common_source_posix_thread.c
new file mode 100644
index 0000000000..cde545185d
--- /dev/null
+++ b/py-awscrt/patches/patch-crt_aws-c-common_source_posix_thread.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix NetBSD build issue: no pthread_np.h header file
+
+--- crt/aws-c-common/source/posix/thread.c.orig 2025-09-06 20:32:43.639391780 +0000
++++ crt/aws-c-common/source/posix/thread.c
+@@ -23,7 +23,7 @@
+ #include <time.h>
+ #include <unistd.h>
+
+-#if defined(__FreeBSD__) || defined(__NetBSD__)
++#if defined(__FreeBSD__)
+ # include <pthread_np.h>
+ typedef cpuset_t cpu_set_t;
+ #elif defined(__OpenBSD__)
diff --git a/py-awscrt/patches/patch-crt_aws-c-io_source_posix_host__resolver.c b/py-awscrt/patches/patch-crt_aws-c-io_source_posix_host__resolver.c
new file mode 100644
index 0000000000..b8ad9ed2e4
--- /dev/null
+++ b/py-awscrt/patches/patch-crt_aws-c-io_source_posix_host__resolver.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix NetBSD build issue: no AI_ALL/AI_V4MAPPED. Match the OpenBSD exception.
+
+--- crt/aws-c-io/source/posix/host_resolver.c.orig 2025-09-06 20:33:44.486176072 +0000
++++ crt/aws-c-io/source/posix/host_resolver.c
+@@ -38,7 +38,7 @@ int aws_default_dns_resolve(
+ AWS_ZERO_STRUCT(hints);
+ hints.ai_family = AF_UNSPEC;
+ hints.ai_socktype = SOCK_STREAM;
+-# if !defined(__OpenBSD__)
++# if !(defined(__OpenBSD__) || defined(__NetBSD__))
+ hints.ai_flags = AI_ALL | AI_V4MAPPED;
+ # endif /* __OpenBSD__ */
+
Home |
Main Index |
Thread Index |
Old Index